summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/intrfn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intrfn.c b/src/intrfn.c
index 9fc96b0..7b468c3 100644
--- a/src/intrfn.c
+++ b/src/intrfn.c
@@ -875,7 +875,7 @@ int screen_buffer_display_ext(WINDOW *window, const char *options_org, const str
const unsigned int itemLength=8;
/* FIXME itemLength */
strncpy(options,"Q",sizeof(options));
- strncat(options,options_org,sizeof(options)-strlen(options));
+ strncat(options, options_org, sizeof(options)-strlen(options)-1);
if(intr_buffer_screen[intr_nbr_line][0]!='\0')
intr_nbr_line++;
/* curses interface */