summaryrefslogtreecommitdiff
path: root/src/supervision/s6-svc.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:27:50 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:27:50 +0000
commit046a7c08c3c1e059be55ebdf49af66f5aee4800b (patch)
treea93976a4da9aeed7380c6c3c686f09a3c429ac21 /src/supervision/s6-svc.c
parent765feac2cdcb84623f8778e20f8277b32679eeac (diff)
downloads6-046a7c08c3c1e059be55ebdf49af66f5aee4800b.tar.xz
Fix argument order in memchr() !
Diffstat (limited to 'src/supervision/s6-svc.c')
-rw-r--r--src/supervision/s6-svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-svc.c b/src/supervision/s6-svc.c
index ed323af..df744e3 100644
--- a/src/supervision/s6-svc.c
+++ b/src/supervision/s6-svc.c
@@ -56,7 +56,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
case 'T' : if (!uint0_scan(l.arg, &timeout)) dieusage() ; break ;
case 'w' :
{
- if (!memchr("dDuUrR", 6, l.arg[0])) dieusage() ;
+ if (!memchr("dDuUrR", l.arg[0], 6)) dieusage() ;
updown[1] = l.arg[0] ;
break ;
}