windows-cellconfig-20090630
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Jul 2009 02:44:05 +0000 (02:44 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Jul 2009 02:44:05 +0000 (02:44 +0000)
LICENSE MIT

nul terminate the correct variable

src/WINNT/afsd/cm_config.c

index a09dabd..eaaba81 100644 (file)
@@ -289,7 +289,7 @@ long cm_SearchCellFileEx(char *cellNamep, char *newCellNamep,
                 /* copy just the first word and ignore trailing white space */
                 for ( i=0; valuep[i] && !isspace(valuep[i]) && i<sizeof(hostname); i++)
                     hostname[i] = valuep[i];
-                valuep[i] = '\0';
+                hostname[i] = '\0';
 
                /* add the server to the VLDB list */
                 WSASetLastError(0);