summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshubham shrivastav <shubham.sh@samsung.com>2015-06-05 13:36:22 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-06-05 13:36:22 -0700
commit897213f36baf6926daf6d192c709cf627aa5fd05 (patch)
tree3757fe8a097b2d486b853485cd6f0d0fa4a4272e /src
parentedf52212a09bd80b52dc9932b5ca19e20dfcaa2b (diff)
Insufficient memory for terminating null of string in _XcursorThemeInherits
Fix does one byte of memory allocation for null termination of string. https://bugs.freedesktop.org/show_bug.cgi?id=90857 Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r--src/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.c b/src/library.c
index f08e8f0..fd040ce 100644
--- a/src/library.c
+++ b/src/library.c
@@ -180,7 +180,7 @@ _XcursorThemeInherits (const char *full)
if (*l != '=') continue;
l++;
while (*l == ' ') l++;
- result = malloc (strlen (l));
+ result = malloc (strlen (l) + 1);
if (result)
{
r = result;