[xlibs-commit] Xcursor ChangeLog,1.5,1.6 library.c,1.5,1.6
Keith Packard
xlibs-commit@pdx.freedesktop.org
Mon, 10 Nov 2003 13:01:58 -0800
Committed by: keithp
Update of /cvs/xlibs/Xcursor
In directory pdx:/tmp/cvs-serv4661
Modified Files:
ChangeLog library.c
Log Message:
* library.c: (_XcursorBuildThemeDir):
Make sure the allocated path has space for directory separators
Index: ChangeLog
===================================================================
RCS file: /cvs/xlibs/Xcursor/ChangeLog,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ChangeLog 29 Oct 2003 16:14:01 -0000 1.5
+++ ChangeLog 10 Nov 2003 21:01:56 -0000 1.6
@@ -1,3 +1,8 @@
+2003-11-10 Keith Packard <keithp@keithp.com>
+
+ * library.c: (_XcursorBuildThemeDir):
+ Make sure the allocated path has space for directory separators
+
2003-10-29 Keith Packard <keithp@keithp.com>
* Xcursor.h:
Index: library.c
===================================================================
RCS file: /cvs/xlibs/Xcursor/library.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- library.c 29 Oct 2003 00:21:48 -0000 1.5
+++ library.c 10 Nov 2003 21:01:56 -0000 1.6
@@ -105,7 +105,11 @@
dirlen--;
}
- len = homelen + dirlen + 1 + themelen + 1;
+ /*
+ * add space for any needed directory separators, one per component,
+ * and one for the trailing null
+ */
+ len = 1 + homelen + 1 + dirlen + 1 + themelen + 1;
full = malloc (len);
if (!full)