diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2017-11-28 15:46:59 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2017-11-28 15:46:59 +0000 |
commit | b73074b2818b2d6db0e4e7374671abed888eb766 (patch) | |
tree | df1e951c73384f2bc9f11a57a50defbc75a73b30 /lib/libXcursor/src/library.c | |
parent | e9db9c62aa5f57d7f43e2e9d051ee0bcc54e7736 (diff) |
Update to libXcursor 1.1.15
Diffstat (limited to 'lib/libXcursor/src/library.c')
-rw-r--r-- | lib/libXcursor/src/library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libXcursor/src/library.c b/lib/libXcursor/src/library.c index 48b75bffd..fd040ce84 100644 --- a/lib/libXcursor/src/library.c +++ b/lib/libXcursor/src/library.c @@ -49,7 +49,7 @@ XcursorLibraryPath (void) static void _XcursorAddPathElt (char *path, const char *elt, int len) { - int pathlen = strlen (path); + size_t pathlen = strlen (path); /* append / if the path doesn't currently have one */ if (path[0] == '\0' || path[pathlen - 1] != '/') @@ -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; |