aboutsummaryrefslogtreecommitdiff
path: root/termkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'termkey.c')
-rw-r--r--termkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index 688953c..455b1b4 100644
--- a/termkey.c
+++ b/termkey.c
@@ -471,6 +471,7 @@ void termkey_pushinput(termkey_t *tk, unsigned char *input, size_t inputlen)
tk->buffsize *= 2;
unsigned char *newbuffer = realloc(tk->buffer, tk->buffsize);
+ // TODO: Handle realloc() failure
tk->buffer = newbuffer;
}
@@ -503,6 +504,7 @@ termkey_keysym termkey_register_keyname(termkey_t *tk, termkey_keysym sym, const
if(sym >= tk->nkeynames) {
const char **new_keynames = realloc(tk->keynames, sizeof(new_keynames[0]) * (sym + 1));
+ // TODO: Handle realloc() failure
tk->keynames = new_keynames;
// Fill in the hole