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:
parent
fa5bddc154
commit
eb02b48186
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user