From 10bb0e481ca4790ed5e08689aa20036d3207b7f7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 12 Mar 2016 13:51:40 +0000 Subject: s6-mount bugfix: better parsing of -o options --- src/minutils/s6-mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3