diff options
Diffstat (limited to 'vis-menu.c')
| -rw-r--r-- | vis-menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -458,7 +458,7 @@ run(void) { return EXIT_FAILURE; case CONTROL('M'): /* Return */ case CONTROL('J'): - if (sel) strncpy(text, sel->text, sizeof text); /* Complete the input first, when hitting return */ + if (sel) strncpy(text, sel->text, sizeof(text)-1); /* Complete the input first, when hitting return */ cursor = strlen(text); match(); drawmenu(); |
