]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
same bug
authorWilliam Pitcock <redacted>
Sun, 17 Aug 2008 12:47:06 +0000 (07:47 -0500)
committerWilliam Pitcock <redacted>
Sun, 17 Aug 2008 12:47:06 +0000 (07:47 -0500)
src/privilege.c

index aa6febe6bd189115c991a94278cdea10cd404612..40bdbcd8a53223636bd93f16497c9dafe7019286 100644 (file)
@@ -68,7 +68,7 @@ privilegeset_extend(struct PrivilegeSet *parent, const char *name, const char *p
        set->name = rb_strdup(name);
        set->flags = flags;
        set->privs = rb_malloc(strlen(parent->privs) + 1 + strlen(privs) + 1);
-       strcpy(parent->privs, set->privs);
+       strcpy(set->privs, parent->privs);
        strcat(set->privs, " ");
        strcat(set->privs, privs);