summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsabetts <sabetts>2005-02-26 02:25:46 +0000
committersabetts <sabetts>2005-02-26 02:25:46 +0000
commit72cbc37bf8e9adc368b57e4b1dbf58cd8218eb0f (patch)
treefba39af9755b29f006c3862ce5440682770c628b /src
parent1bed5ddd3e05299ab30efc48995d7a3cd5471ad3 (diff)
downloadratpoison-72cbc37bf8e9adc368b57e4b1dbf58cd8218eb0f.zip
(parse_args): properly check if we've hit the arg
limit.
Diffstat (limited to 'src')
-rw-r--r--src/actions.c2
1 files changed, 1 insertions, 1 deletions
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)