putenv_preserve: don't use strncpy
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