summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authorderaadt <>2000-07-06 06:24:50 +0000
committerderaadt <>2000-07-06 06:24:50 +0000
commitce2eadb0310a8bb5e8fcce85620ec22081d2e353 (patch)
tree05f4b3285d96b939301ebc8aa212af63efece83b /src/usr.bin
parent1e63db5948c35371667755b98bc61547742c83cf (diff)
downloadopenbsd-ce2eadb0310a8bb5e8fcce85620ec22081d2e353.tar.gz
openbsd-ce2eadb0310a8bb5e8fcce85620ec22081d2e353.tar.bz2
openbsd-ce2eadb0310a8bb5e8fcce85620ec22081d2e353.zip
do not assume h_errs[] is clean, use %s
Diffstat (limited to 'src/usr.bin')
-rw-r--r--src/usr.bin/nc/netcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c
index a8faf83917..31f49a3fc3 100644
--- a/src/usr.bin/nc/netcat.c
+++ b/src/usr.bin/nc/netcat.c
@@ -154,7 +154,7 @@ holler(str, p1, p2, p3, p4, p5, p6)
154 if (h_errno > 4) /* oh no you don't, either */ 154 if (h_errno > 4) /* oh no you don't, either */
155 fprintf(stderr, "preposterous h_errno: %d", h_errno); 155 fprintf(stderr, "preposterous h_errno: %d", h_errno);
156 else 156 else
157 fprintf(stderr, h_errs[h_errno]); 157 fprintf(stderr, "%s", h_errs[h_errno]);
158 h_errno = 0; /* and reset for next call */ 158 h_errno = 0; /* and reset for next call */
159 } 159 }
160#endif 160#endif