projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.02.tar.gz
[xscreensaver]
/
driver
/
xscreensaver-getimage.c
diff --git
a/driver/xscreensaver-getimage.c
b/driver/xscreensaver-getimage.c
index 46e3019eee924e3024348b265e53402e49870395..04b752011fd63c872545b53b1faf25e9f5264697 100644
(file)
--- a/
driver/xscreensaver-getimage.c
+++ b/
driver/xscreensaver-getimage.c
@@
-1,4
+1,4
@@
-/* xscreensaver, Copyright (c) 2001 by Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 2001
, 2002
by Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
@@
-295,6
+295,12
@@
get_image (Screen *screen, Window window, Bool verbose_p)
if (putenv (ndpy))
abort ();
if (putenv (ndpy))
abort ();
+
+ /* don't free (ndpy) -- some implementations of putenv (BSD
+ 4.4, glibc 2.0) copy the argument, but some (libc4,5, glibc
+ 2.1.2) do not. So we must leak it (and/or the previous
+ setting). Yay.
+ */
}
# endif /* HAVE_PUTENV */
}
# endif /* HAVE_PUTENV */