projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.29.tar.gz
[xscreensaver]
/
driver
/
subprocs.c
diff --git
a/driver/subprocs.c
b/driver/subprocs.c
index 65b0079abd86941009eb0cc74662ecaa441838cd..19697241d947073be525043fb592cd77adbfb613 100644
(file)
--- a/
driver/subprocs.c
+++ b/
driver/subprocs.c
@@
-1101,8
+1101,9
@@
hack_environment (saver_info *si)
if (def_path && *def_path)
{
const char *opath = getenv("PATH");
if (def_path && *def_path)
{
const char *opath = getenv("PATH");
+ char *npath;
if (! opath) opath = "/bin:/usr/bin"; /* WTF */
if (! opath) opath = "/bin:/usr/bin"; /* WTF */
-
char *
npath = (char *) malloc(strlen(def_path) + strlen(opath) + 20);
+ npath = (char *) malloc(strlen(def_path) + strlen(opath) + 20);
strcpy (npath, "PATH=");
strcat (npath, def_path);
strcat (npath, ":");
strcpy (npath, "PATH=");
strcat (npath, def_path);
strcat (npath, ":");