DEVEL15-windows-cellconfig-20090630

LICENSE MIT

nul terminate the correct variable


(cherry picked from commit ad6a8942db587b2c5b9aaee6a3e8e89b69e3918c)
This commit is contained in:
Jeffrey Altman 2009-07-01 02:44:29 +00:00
parent 3d2baea9ee
commit 5e61d215ae

View 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);