summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:39:36 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:39:36 +0100
commit6d0094bf727e05d2105b8a20d569dd69c7a9d163 (patch)
treeb0935f264b617b86e8c8618c09cbf894983b2fc8
parent92cc46437a6bdab7edc30ea2736d2bb42df1665e (diff)
src/intrfn.c: don't forget null byte when using strncat
-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 */