diff options
author | shubham shrivastav <shubham.sh@samsung.com> | 2015-06-05 13:36:22 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-07-08 10:44:13 -0700 |
commit | 12ea0a8599ecba7663899d7e6ab82f3a27e506f0 (patch) | |
tree | bab71d67f0a46c29c1fafc3edf4088ef0d767baa /cursor | |
parent | 9b9ec3cfd1db9fac09b119715dabc36aaa77f497 (diff) |
Insufficient memory for terminating null of string in _XcursorThemeInherits
Copied from libxcursor@897213f36baf6926daf6d192c709cf627aa5fd05
Reported-by: @ithinkapps in libxcb-cursor issue #11
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'cursor')
-rw-r--r-- | cursor/load_cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cursor/load_cursor.c b/cursor/load_cursor.c index 7cd53cf..bffd3cd 100644 --- a/cursor/load_cursor.c +++ b/cursor/load_cursor.c @@ -96,7 +96,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; |