putenv_preserve: don't use strncpy

pull/35/head
Hexchain Tong 2014-07-09 20:44:51 +08:00
parent fa5bddc154
commit eb02b48186
1 changed files with 1 additions and 1 deletions

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)