summaryrefslogtreecommitdiff
path: root/lib/libXcursor/src/library.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2017-11-28 15:46:59 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2017-11-28 15:46:59 +0000
commitb73074b2818b2d6db0e4e7374671abed888eb766 (patch)
treedf1e951c73384f2bc9f11a57a50defbc75a73b30 /lib/libXcursor/src/library.c
parente9db9c62aa5f57d7f43e2e9d051ee0bcc54e7736 (diff)
Update to libXcursor 1.1.15
Diffstat (limited to 'lib/libXcursor/src/library.c')
-rw-r--r--lib/libXcursor/src/library.c4
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;