diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2018-05-26 12:05:41 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2018-05-26 12:05:41 +0200 |
commit | 68cac7345cfe4d90bf6caef8309462572fbd26de (patch) | |
tree | ad571a1788df2ee445b66607de18acca3a2bba4c /src | |
parent | 7efe03cf0552234852be6e4537c5fe0ce0c6841c (diff) | |
download | calcurse-68cac7345cfe4d90bf6caef8309462572fbd26de.tar.gz calcurse-68cac7345cfe4d90bf6caef8309462572fbd26de.zip |
Always NUL-terminate buffer in keys_fill_missing()
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/keys.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -720,6 +720,7 @@ void keys_fill_missing(void) char *p, tmpbuf[BUFSIZ]; strncpy(tmpbuf, keydef[i].binding, BUFSIZ); + tmpbuf[BUFSIZ - 1] = '\0'; p = tmpbuf; for (;;) { char key_ch[BUFSIZ]; |