diff options
| author | Antoine Brodin <antoine@FreeBSD.org> | 2012-12-25 17:06:05 +0000 |
|---|---|---|
| committer | Antoine Brodin <antoine@FreeBSD.org> | 2012-12-25 17:06:05 +0000 |
| commit | 3496d72c485a703df93ff3bac86b589e30c782c0 (patch) | |
| tree | 60b741f004b3e8b2939d329c840818aae82ea4e7 /libexec | |
| parent | c4d06976852e009141c95fa31bca765a85102c91 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/tftpd/tftp-io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libexec/tftpd/tftp-io.c b/libexec/tftpd/tftp-io.c index d5d7fc6401fc..1d4f743a4359 100644 --- a/libexec/tftpd/tftp-io.c +++ b/libexec/tftpd/tftp-io.c @@ -87,14 +87,13 @@ errtomsg(int error) { static char ebuf[40]; struct errmsg *pe; - char buf[MAXPKTSIZE]; if (error == 0) return ("success"); for (pe = errmsgs; pe->e_code >= 0; pe++) if (pe->e_code == error) return (pe->e_msg); - snprintf(ebuf, sizeof(buf), "error %d", error); + snprintf(ebuf, sizeof(ebuf), "error %d", error); return (ebuf); } |
