View | Details | Raw Unified | Return to bug 174631
Collapse All | Expand All

(-)libexec/tftpd/tftp-io.c (-2 / +1 lines)
Lines 87-100 errtomsg(int error) Link Here
87
{
87
{
88
	static char ebuf[40];
88
	static char ebuf[40];
89
	struct errmsg *pe;
89
	struct errmsg *pe;
90
	char buf[MAXPKTSIZE];
91
90
92
	if (error == 0)
91
	if (error == 0)
93
		return ("success");
92
		return ("success");
94
	for (pe = errmsgs; pe->e_code >= 0; pe++)
93
	for (pe = errmsgs; pe->e_code >= 0; pe++)
95
		if (pe->e_code == error)
94
		if (pe->e_code == error)
96
			return (pe->e_msg);
95
			return (pe->e_msg);
97
	snprintf(ebuf, sizeof(buf), "error %d", error);
96
	snprintf(ebuf, sizeof(ebuf), "error %d", error);
98
	return (ebuf);
97
	return (ebuf);
99
}
98
}

Return to bug 174631