putenv() was broken and actually cut off one character of the variable name.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10065 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-11-20 23:33:59 +00:00
parent 0972cb42b8
commit 50686c7a7f

View File

@ -58,7 +58,7 @@ putenv(const char *string)
return -1;
}
strlcpy(name, string, value - string);
strlcpy(name, string, value + 1 - string);
value++;
return setenv(name, value, true);