diff -Naur libXcursor-1.1.14/src/library.c libXcursor-1.1.14_mod/src/library.c --- libXcursor-1.1.14/src/library.c 2013-05-30 11:54:28.000000000 +0530 +++ libXcursor-1.1.14_mod/src/library.c 2015-05-29 14:55:52.000000000 +0530 @@ -180,7 +180,7 @@ if (*l != '=') continue; l++; while (*l == ' ') l++; - result = malloc (strlen (l)); + result = malloc (strlen (l) + 1); if (result) { r = result;