diff --git a/xcursor/xcursor.c b/xcursor/xcursor.c index 51ce8323..d33dee28 100644 --- a/xcursor/xcursor.c +++ b/xcursor/xcursor.c @@ -655,8 +655,11 @@ _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 } static char *