aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-01-31 00:02:51 +0000
committerHarry Jeffery <harry@exec64.co.uk>2019-01-31 00:02:51 +0000
commit35c81938f39b0767eb63fd8af589d7eb1d24ce8f (patch)
treeee7c159f097b4dad6485f058a097d9c5f76cd97b
parent4681319d1d8e76b401031495dd52322c3ba8a28d (diff)
downloadimv-35c81938f39b0767eb63fd8af589d7eb1d24ce8f.tar.gz
Fix some compiler warnings
-rw-r--r--src/backend_librsvg.c1
-rw-r--r--src/binds.c2
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+" : "",