Revert "Ensure NULL terminator for VS2005 and below"

This reverts commit 1f779dec2a. We needed '\0', not '0'.
pull/326/head
Jeffrey Walton 2016-10-10 15:56:22 -04:00
parent 1f779dec2a
commit e227ddd09a
1 changed files with 1 additions and 1 deletions

View File

@ -81,9 +81,9 @@ int inet_pton(int af, const char *src, void *dst)
#else
char temp[MAX_ADDRSTRLEN];
strncpy(temp, src, sizeof(temp));
temp[MAX_ADDRSTRLEN-1] = '0';
#endif
int size = sizeof(ss);
if (WSAStringToAddress(temp, af, NULL, (struct sockaddr *)&ss, &size) == 0) {
switch (af) {