of snprintf in one of the format's parameters.
+2009-03-07 Nicolas François <nicolas.francois@centraliens.net>
+
+ * contrib/adduser-old.c, contrib/adduser.c: Do not use the target
+ of snprintf in one of the format's parameters.
+
2009-03-07 Nicolas François <nicolas.francois@centraliens.net>
* man/groupmems.8.xml: groupmems does not create new user.
fflush(stdin);
} else
if (dir[strlen(dir)-1]=='/')
- sprintf(dir,"%s%s",dir,uname);
+ sprintf(dir+strlen(dir),"%s",uname);
printf("\nShell [%s]: ",DEFAULT_SHELL);
fflush(stdout);
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
{