diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/minutils/s6-mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/minutils/s6-mount.c b/src/minutils/s6-mount.c index b6ac674..bb6db81 100644 --- a/src/minutils/s6-mount.c +++ b/src/minutils/s6-mount.c @@ -16,7 +16,7 @@ #define SWITCH(opt) do #define HCTIWS(opt) while(0) ; -#define CASE(s) if (!str_diffn(opt, (s), str_len(s))) +#define CASE(s) if (n == sizeof(s) - 1 && !str_diffn(opt, (s), n)) static void scanopt (stralloc *data, unsigned long *flags, char const *opt) { |