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:
parent
0972cb42b8
commit
50686c7a7f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user