git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Taint: internal documentation
[users/jgh/exim.git]
/
src
/
src
/
setenv.c
diff --git
a/src/src/setenv.c
b/src/src/setenv.c
index 9a05b64b90cc42ef23787695cd07063d40d7e7c1..90e679304f67c7240365bc51bc58ecde68cc49c3 100644
(file)
--- a/
src/src/setenv.c
+++ b/
src/src/setenv.c
@@
-17,7
+17,7
@@
setenv(const char * name, const char * val, int overwrite)
uschar * s;
if (Ustrchr(name, '=')) return -1;
if (overwrite || !getenv(name))
- putenv(CS string_copy_
malloc(string_sprintf("%s=%s", name, val)
));
+ putenv(CS string_copy_
perm(string_sprintf("%s=%s", name, val), FALSE
));
return 0;
}