diff options
| author | Antoine Brodin <antoine@FreeBSD.org> | 2013-02-02 13:47:34 +0000 |
|---|---|---|
| committer | Antoine Brodin <antoine@FreeBSD.org> | 2013-02-02 13:47:34 +0000 |
| commit | 8b2b26e1d27b274f0bb805766f49cbe74e56db54 (patch) | |
| tree | 92bc40d22325afabbe4a03bb51d43b75b4e9dfa8 /libexec | |
| parent | d965d42a8802974a525442afc874cea07965857d (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 c985997f0e9d..0e9264c842cc 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); } |
