diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-07-06 06:24:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-07-06 06:24:51 +0000 |
commit | 4241f940c1bd19361d3054e1026e3a09ed2d9609 (patch) | |
tree | f8d2e11583c2887b3a9cd2147cef6e22a9d59030 /usr.bin/nc/netcat.c | |
parent | 0e5d70a466a0dd3783ad2d5ccba4beb31b9389ce (diff) |
do not assume h_errs[] is clean, use %s
Diffstat (limited to 'usr.bin/nc/netcat.c')
-rw-r--r-- | usr.bin/nc/netcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c index a8faf839175..31f49a3fc35 100644 --- a/usr.bin/nc/netcat.c +++ b/usr.bin/nc/netcat.c @@ -154,7 +154,7 @@ holler(str, p1, p2, p3, p4, p5, p6) if (h_errno > 4) /* oh no you don't, either */ fprintf(stderr, "preposterous h_errno: %d", h_errno); else - fprintf(stderr, h_errs[h_errno]); + fprintf(stderr, "%s", h_errs[h_errno]); h_errno = 0; /* and reset for next call */ } #endif |