* contrib/adduser-old.c, contrib/adduser.c: Do not use the target

of snprintf in one of the format's parameters.
This commit is contained in:
nekral-guest
2009-03-07 16:32:11 +00:00
parent 7368452e49
commit f47d9eba94
3 changed files with 7 additions and 2 deletions

View File

@ -296,7 +296,7 @@ main (void)
sprintf (dir, "%s/%s", DEFAULT_HOME, usrname);
}
else if (dir[strlen (dir) - 1] == '/')
sprintf (dir, "%s%s", dir, usrname);
sprintf (dir+strlen(dir), "%s", usrname);
}
else
{