summaryrefslogtreecommitdiff
path: root/cursor/xcursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'cursor/xcursor.c')
-rw-r--r--cursor/xcursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cursor/xcursor.c b/cursor/xcursor.c
index 1f66bce..7a9662a 100644
--- a/cursor/xcursor.c
+++ b/cursor/xcursor.c
@@ -757,7 +757,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;