diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getmountlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getmountlist.c b/lib/getmountlist.c index 98347223..5f4bc63b 100644 --- a/lib/getmountlist.c +++ b/lib/getmountlist.c @@ -76,7 +76,7 @@ int comma_scan(char *optlist, char *opt, int clean) 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); } |