Skip to content

Commit d0f0324

Browse files
committed
'tui.c' : fixed theoretically potential buffer overflow that caused GCC 13.4.0 to emit a warning. Fixes issue #369.
1 parent db3fc8e commit d0f0324

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demos/tui.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static char wordchar(void)
7171
static char *padstr(char *s, int length)
7272
{
7373
static char buf[MAXSTRLEN];
74-
char fmt[10];
74+
char fmt[15];
7575

7676
sprintf(fmt, (int)strlen(s) > length ? "%%.%ds" : "%%-%ds", length);
7777
sprintf(buf, fmt, s);

0 commit comments

Comments
 (0)