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

source/client/mount.cifs.c

index 917942dbc3598adfed7522e872f98631622e7193..f141e8e4c7a8698bda04f6f1da98829906f76cfa 100644 (file)
@@ -756,7 +756,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);