diff options
Diffstat (limited to 'xcursor/xcursor.c')
-rw-r--r-- | xcursor/xcursor.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xcursor/xcursor.c b/xcursor/xcursor.c index d33dee28..5c4538a2 100644 --- a/xcursor/xcursor.c +++ b/xcursor/xcursor.c @@ -655,11 +655,8 @@ _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); + memcpy (path + pathlen, elt, len); path[pathlen + len] = '\0'; -#pragma GCC diagnostic pop } static char * |