aboutsummaryrefslogtreecommitdiffstats
path: root/src/satr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satr.c')
-rw-r--r--src/satr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/satr.c b/src/satr.c
index d432343..ef5da6e 100644
--- a/src/satr.c
+++ b/src/satr.c
@@ -21,6 +21,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include "client.h"
@@ -70,7 +71,7 @@ main(int argc, char *argv[])
if (!strcmp(argv[1], "--"))
argv++, argc--;
for (i = 1; i < argc; i++)
- if (argv[i][0] == '-')
+ if (strchr("-", argv[i][0]))
usage();
n = measure_array(argv + 1);