From 69acac38c90559eb2138d3fd7cd852ff73a77fdd Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sun, 31 Jan 2016 15:19:56 -0800 Subject: [PATCH] 37859: NULL-terminate cond_binary_ops static array. --- ChangeLog | 4 ++++ Src/text.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index acaf82201..d4adbe886 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-01-31 Barton E. Schaefer + + * 37859: Src/text.c: NULL-terminate cond_binary_ops static array. + 2016-01-30 Barton E. Schaefer * 37845: Doc/Zsh/builtins.yo: Forward-reference typeset instances diff --git a/Src/text.c b/Src/text.c index 04acd2aac..cf6d3eb42 100644 --- a/Src/text.c +++ b/Src/text.c @@ -47,7 +47,7 @@ int text_expand_tabs; */ static const char *cond_binary_ops[] = { "=", "!=", "<", ">", "-nt", "-ot", "-ef", "-eq", - "-ne", "-lt", "-gt", "-le", "-ge", "=~" + "-ne", "-lt", "-gt", "-le", "-ge", "=~", NULL }; static char *tptr, *tbuf, *tlim, *tpending;