1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2025-01-23 01:12:59 +08:00

putenv_preserve: don't use strncpy

This commit is contained in:
Hexchain Tong 2014-07-09 20:44:51 +08:00
parent fa5bddc154
commit eb02b48186

View File

@ -62,7 +62,7 @@ static int putenv_prepend(char* string) {
char orig[256];
strncpy(orig, string, sizeof(orig));
strcpy(orig, string);
value = getenv(strtok(orig, "="));
if(NULL == value)