summaryrefslogtreecommitdiff
path: root/src/instance/s6-instance-delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/instance/s6-instance-delete.c')
-rw-r--r--src/instance/s6-instance-delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/instance/s6-instance-delete.c b/src/instance/s6-instance-delete.c
index fc1337a..37c345c 100644
--- a/src/instance/s6-instance-delete.c
+++ b/src/instance/s6-instance-delete.c
@@ -42,7 +42,7 @@ int main (int argc, char const *const *argv)
}
if (argc < 2) dieusage() ;
if (!argv[0][0]) strerr_dief1x(100, "invalid service path") ;
- if (!argv[1][0] || argv[1][0] == '.' || byte_in(argv[1], strlen(argv[1]), " \t\f\r\n", 5) < 5)
+ if (!argv[1][0] || argv[1][0] == '.' || byte_in(argv[1], strlen(argv[1]), " \t\f\r\n", 5) < strlen(argv[1]))
strerr_dief1x(100, "invalid instance name") ;
tain_now_set_stopwatch_g() ;