Skip to content

Commit 8b205e8

Browse files
committed
ncurses: Fix -Wunterminated-string-initialization
This was fixed in upstream ncurses (https://ncurses.scripts.mit.edu/?p=ncurses.git;a=commitdiff;h=64afa9627b292b87c8473928854f3dd8c463d833), but for now only pull in the minimal fix that avoids reading beyond the end of the buffer during strlen(). MFC after: 3 days
1 parent 3d52e18 commit 8b205e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/ncurses/progs/infocmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ compare_predicate(PredType type, PredIdx idx, const char *name)
687687
#define DATAX() DATA("", "")
688688

689689
typedef struct {
690-
const char from[4];
690+
const char from[8];
691691
const char to[12];
692692
} assoc;
693693

0 commit comments

Comments
 (0)