diff options
author | delphij <delphij@FreeBSD.org> | 2012-12-03 19:00:23 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-12-03 19:00:23 +0000 |
commit | 9b265d16e4129bd2fe2e0dcccab1f272ac744275 (patch) | |
tree | bb3eb28e6fc46490820f24bfd07f4dc9b884db7a /contrib/less/option.c | |
parent | 10af555ec7340db3df4dfd42c2ca948aae85e16b (diff) | |
download | FreeBSD-src-9b265d16e4129bd2fe2e0dcccab1f272ac744275.zip FreeBSD-src-9b265d16e4129bd2fe2e0dcccab1f272ac744275.tar.gz |
MFV: less v456.
Diffstat (limited to 'contrib/less/option.c')
-rw-r--r-- | contrib/less/option.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/less/option.c b/contrib/less/option.c index 5d18561..cd45281 100644 --- a/contrib/less/option.c +++ b/contrib/less/option.c @@ -149,7 +149,7 @@ scan_option(s) if (s == NULL) return; if (*str == '+') - every_first_cmd = save(++str); + every_first_cmd = save(str+1); else ungetsc(str); free(str); @@ -585,7 +585,6 @@ optstring(s, p_str, printopt, validchars) } else { if (*p == END_OPTION_STRING || - *p == ' ' || *p == '\t' || *p == '-' || (validchars != NULL && strchr(validchars, *p) == NULL)) /* End of option string. */ break; |