diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-10-05 22:06:06 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-10-05 22:06:06 +0200 |
| commit | fc575f6986d19205a3b97f1813246529c6d2fc79 (patch) | |
| tree | 73f14c6bae1306f9510f95579438d18fcaf01754 /vis-menu.c | |
| parent | e3c1f30e6d8dc15b35842d847f87954b4aa046e0 (diff) | |
| download | vis-fc575f6986d19205a3b97f1813246529c6d2fc79.tar.gz vis-fc575f6986d19205a3b97f1813246529c6d2fc79.tar.xz | |
Fix various issues reported by coverity scan
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(); |
