svn commit: r247646 - stable/8/libexec/tftpd
Marius Strobl
marius at FreeBSD.org
Sat Mar 2 17:18:39 UTC 2013
Author: marius
Date: Sat Mar 2 17:18:38 2013
New Revision: 247646
URL: http://svnweb.freebsd.org/changeset/base/247646
Log:
MFC: r244686
Use correct size in snprintf.
Remove unused buffer.
PR: 174631
Submitted by: Henning Petersen
Modified:
stable/8/libexec/tftpd/tftp-io.c
Directory Properties:
stable/8/libexec/tftpd/ (props changed)
Modified: stable/8/libexec/tftpd/tftp-io.c
==============================================================================
--- stable/8/libexec/tftpd/tftp-io.c Sat Mar 2 17:14:53 2013 (r247645)
+++ stable/8/libexec/tftpd/tftp-io.c Sat Mar 2 17:18:38 2013 (r247646)
@@ -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);
}
More information about the svn-src-stable
mailing list