diff options
-rw-r--r-- | src/backend_librsvg.c | 1 | ||||
-rw-r--r-- | src/binds.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/backend_librsvg.c b/src/backend_librsvg.c index 72394b3..2a08deb 100644 --- a/src/backend_librsvg.c +++ b/src/backend_librsvg.c @@ -3,6 +3,7 @@ #include "source.h" #include <stdlib.h> +#include <string.h> #ifdef IMV_BACKEND_LIBRSVG diff --git a/src/binds.c b/src/binds.c index f1a6558..a38fe1a 100644 --- a/src/binds.c +++ b/src/binds.c @@ -207,7 +207,7 @@ static int print_event(char *buf, size_t len, const SDL_Event *event) } /* Build prefix first: */ - char prefix[16] = {0}; + char prefix[32] = {0}; snprintf(prefix, sizeof prefix, "%s%s%s", SDL_GetModState() & KMOD_CTRL ? "Ctrl+" : "", SDL_GetModState() & KMOD_ALT ? "Meta+" : "", |