aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/TextToStr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/TextToStr.c')
-rw-r--r--libX11/src/TextToStr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libX11/src/TextToStr.c b/libX11/src/TextToStr.c
index a32de8729..29d07c466 100644
--- a/libX11/src/TextToStr.c
+++ b/libX11/src/TextToStr.c
@@ -76,7 +76,7 @@ Status XTextPropertyToStringList (
*/
list = (char **) Xmalloc (nelements * sizeof (char *));
if (!list) return False;
-
+
start = (char *) Xmalloc ((datalen + 1) * sizeof (char)); /* for <NUL> */
if (!start) {
Xfree ((char *) list);