aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xcursor/xcursor.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xcursor/xcursor.c b/xcursor/xcursor.c
index d33dee28..acb2e1a8 100644
--- a/xcursor/xcursor.c
+++ b/xcursor/xcursor.c
@@ -655,11 +655,7 @@ _XcursorAddPathElt (char *path, const char *elt, int len)
elt++;
len--;
}
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wstringop-truncation"
- strncpy (path + pathlen, elt, len);
- path[pathlen + len] = '\0';
-#pragma GCC diagnostic pop
+ strncat (path + pathlen, elt, len);
}
static char *