From 72cbc37bf8e9adc368b57e4b1dbf58cd8218eb0f Mon Sep 17 00:00:00 2001 From: sabetts Date: Sat, 26 Feb 2005 02:25:46 +0000 Subject: (parse_args): properly check if we've hit the arg limit. --- ChangeLog | 5 +++++ src/actions.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 50a515a..61b996d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-26 + + * src/actions.c (parse_args): properly check if we've hit the arg + limit. + 2005-02-22 sabetts * src/main.c (read_startup_files): use xsprintf when generating diff --git a/src/actions.c b/src/actions.c index 0687d5b..67d1289 100644 --- a/src/actions.c +++ b/src/actions.c @@ -2101,7 +2101,7 @@ parse_args (char *str, struct list_head *list, int nargs, int raw) for (i=str; *i; i++) { /* Have we hit the arg limit? */ - if (nargs >= 0 && parsed_args >= nargs) + if (raw && parsed_args >= nargs) { struct sbuf *s = sbuf_new(0); if (!raw) -- cgit v1.2.3