src/intrfn.c: don't forget null byte when using strncat
This commit is contained in:
parent
92cc46437a
commit
6d0094bf72
1 changed files with 1 additions and 1 deletions
|
@ -875,7 +875,7 @@ int screen_buffer_display_ext(WINDOW *window, const char *options_org, const str
|
||||||
const unsigned int itemLength=8;
|
const unsigned int itemLength=8;
|
||||||
/* FIXME itemLength */
|
/* FIXME itemLength */
|
||||||
strncpy(options,"Q",sizeof(options));
|
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')
|
if(intr_buffer_screen[intr_nbr_line][0]!='\0')
|
||||||
intr_nbr_line++;
|
intr_nbr_line++;
|
||||||
/* curses interface */
|
/* curses interface */
|
||||||
|
|
Loading…
Reference in a new issue