]> granicus.if.org Git - shadow/blobdiff - contrib/adduser-old.c
* contrib/adduser-old.c, contrib/adduser.c: Do not use the target
[shadow] / contrib / adduser-old.c
index f924b36e4b41c7fece63903eca0e285a6ee18e8b..0b2080ec698cd7eae5da40ffc05a53b9cb4c0e21 100644 (file)
@@ -230,7 +230,7 @@ void main()
                        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);