projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77ec8f4
)
src/oping.c: Only treat "-" as STDIN, not all strings beginning with "-".
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
3164230
..
4f75f22
100644
(file)
--- 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");