Mercurial > hg > toybox
changeset 1507:321e9d5032c1 draft
Brown paper bag time: comma_scan() didn't work for anything but the last entry.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 28 Sep 2014 13:11:20 -0500 |
parents | 448e47e2ad46 |
children | b0ade326c855 |
files | lib/getmountlist.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getmountlist.c Sat Sep 27 21:07:00 2014 -0500 +++ b/lib/getmountlist.c Sun Sep 28 13:11:20 2014 -0500 @@ -76,7 +76,7 @@ if (!s) break; no = 2*(*s == 'n' && s[1] == 'o'); - if (optlen == len+no && !strcmp(opt, s+no)) { + if (optlen == len-no && !strncmp(opt, s+no, optlen)) { got = !no; if (clean) memmove(s, optlist, strlen(optlist)+1); }