summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77ec8f4)
raw | patch | inline | side by side (parent: 77ec8f4)
author | Florian Forster <octo@verplant.org> | |
Wed, 15 Jul 2009 11:09:48 +0000 (13:09 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Wed, 15 Jul 2009 11:09:48 +0000 (13:09 +0200) |
src/oping.c | patch | blob | history |
diff --git a/src/oping.c b/src/oping.c
index 3164230484a94f03e4eebb2175b5ae242b04b64c..4f75f22be5e92d195b99c343bdf42ef460447ef8 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
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");