summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2013-02-02 13:47:34 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2013-02-02 13:47:34 +0000
commit8b2b26e1d27b274f0bb805766f49cbe74e56db54 (patch)
tree92bc40d22325afabbe4a03bb51d43b75b4e9dfa8 /libexec
parentd965d42a8802974a525442afc874cea07965857d (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/tftpd/tftp-io.c3
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);
}