File: palfile-buffer.patch

package info (click to toggle)
imlib 1.9.14-17.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,136 kB
  • ctags: 1,092
  • sloc: ansic: 49,353; sh: 7,392; makefile: 200; python: 5
file content (22 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: Imlib/misc.c
===================================================================
RCS file: /home/steve/lib/cvs/debian/imlib/Imlib/misc.c,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -u -b -B -r1.1.1.2 -r1.2
--- Imlib/misc.c	3 Sep 2001 06:39:08 -0000	1.1.1.2
+++ Imlib/misc.c	19 May 2002 22:09:50 -0000	1.2
@@ -932,8 +932,11 @@
     {
       if (p->flags & PARAMS_VISUALID)
 	vis = p->visualid;
-      if (p->flags & PARAMS_PALETTEFILE)
-	strcpy(palfile, p->palettefile);
+      if (p->flags & PARAMS_PALETTEFILE) {
+	  if (palfile)
+	      free(palfile);
+	  palfile = strdup(p->palettefile);
+      }
       if (p->flags & PARAMS_SHAREDMEM)
 	{
 	  if (!p->sharedmem)