From cffebf48f20acd4bf8142531575833d42d1760d5 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 15 Jul 2009 13:09:48 +0200 Subject: [PATCH] src/oping.c: Only treat "-" as STDIN, not all strings beginning with "-". --- src/oping.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oping.c b/src/oping.c index 3164230..4f75f22 100644 --- a/src/oping.c +++ b/src/oping.c @@ -367,7 +367,8 @@ int main (int argc, char **argv) char line[256]; char host[256]; - if (strncmp(opt_filename, "-", 1) == 0) + if (strcmp (opt_filename, "-") == 0) + /* Open STDIN */ infile = fdopen(0, "r"); else infile = fopen(opt_filename, "r"); -- 2.30.2