Missed one strcpy call.
authorJeremy Allison <jra@samba.org>
Thu, 13 Dec 2007 03:12:24 +0000 (19:12 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 13 Dec 2007 03:12:24 +0000 (19:12 -0800)
Jeremy.

source/client/mount.cifs.c

index 4b1f6386f44f181ce9c5909260a9a7419349040f..33aa657c68f10d7184e1f2a83587ce0042aa84ee 100755 (executable)
@@ -757,7 +757,7 @@ static char * check_for_domain(char **ppuser)
        if(domainnm == NULL)
                return NULL;
 
-       strcpy(domainnm,*ppuser);
+       strlcpy(domainnm,*ppuser,len+1);
 
 /*     move_string(*ppuser, usernm+1) */
        len = strlen(usernm+1);