summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 3f1ea7180..3bf78db79 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -5686,7 +5686,7 @@ ex_history(eap)
histype1 = get_histtype(arg);
if (histype1 == -1)
{
- if (STRICMP(arg, "all") == 0)
+ if (STRNICMP(arg, "all", STRLEN(arg)) == 0)
{
histype1 = 0;
histype2 = HIST_COUNT-1;