diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-01-09 14:35:54 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-01-09 14:35:54 +0000 |
commit | 724fc63f4736d620173e733a3b35c003a0d82ff8 (patch) | |
tree | 387fe913faf86e3baa1544773a2fba38958bca49 /src/instance/s6-instance-delete.c | |
parent | 09750ce3525129a676dec4f579aea3ad2eca1b19 (diff) | |
download | s6-724fc63f4736d620173e733a3b35c003a0d82ff8.tar.xz |
First batch of fixes, more to come >.>
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/instance/s6-instance-delete.c')
-rw-r--r-- | src/instance/s6-instance-delete.c | 2 |
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() ; |