diff options
| author | Tom Schwindl <schwindl@posteo.de> | 2023-09-25 22:12:32 +0200 |
|---|---|---|
| committer | Tom Schwindl <schwindl@posteo.de> | 2023-09-25 22:12:32 +0200 |
| commit | b63aa007745bd79e9ac66a240e93a232a3dcb95d (patch) | |
| tree | 31d263e60a99f6a56d1f5704b9856b7f91c0fb40 | |
| parent | 7111608444c9fc00743e9dbd8c4dead3b4001eeb (diff) | |
| download | vis-b63aa007745bd79e9ac66a240e93a232a3dcb95d.tar.gz vis-b63aa007745bd79e9ac66a240e93a232a3dcb95d.tar.xz | |
vis-menu.c: add space for terminating NUL byte
| -rw-r--r-- | vis-menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -566,7 +566,7 @@ run(void) { case CONTROL('I'): /* TAB */ if (!sel) break; - strncpy(text, sel->text, sizeof text); + strncpy(text, sel->text, sizeof(text)-1); cursor = strlen(text); match(); break; |
