diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-02-23 10:42:01 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-02-23 10:42:01 +0000 |
commit | 28bb89cfb2a3394540de6c3b2e3cf5e183e5d997 (patch) | |
tree | af0a8584808cca6647702f0ff76aed85862c4e37 /lib | |
parent | 120cbac4197229d15bbf02f49c2b76c82e117e3f (diff) | |
download | mailutils-28bb89cfb2a3394540de6c3b2e3cf5e183e5d997.tar.gz mailutils-28bb89cfb2a3394540de6c3b2e3cf5e183e5d997.tar.bz2 |
(argcv_scan): Correclty handle comments without intervening whitespace
between the comment character and remaining text, e.g.:
set a=2 #comment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/argcv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/argcv.c b/lib/argcv.c index c60674514..291f5c44d 100644 --- a/lib/argcv.c +++ b/lib/argcv.c @@ -72,7 +72,7 @@ argcv_scan (int len, const char *command, const char *delim, const char* cmnt, /* If we have a token, and it starts with a comment character, skip to the newline and restart the token search. */ - if (*save < len) + if (*save <= len) { if (cmnt && strchr (cmnt, command[*start]) != NULL) { |