1 diff -urN tftp-hpa-0.49.orig/tftp/tftp.c tftp-hpa-0.49/tftp/tftp.c
2 --- tftp-hpa-0.49.orig/tftp/tftp.c 2008-10-20 18:08:31.000000000 -0400
3 +++ tftp-hpa-0.49/tftp/tftp.c 2009-08-05 09:47:18.072585848 -0400
5 struct tftphdr *tp, const char *mode)
10 tp->th_opcode = htons((u_short) request);
11 cp = (char *)&(tp->th_stuff);
18 + len = strlen(name) + 1;
19 + memcpy(cp, name, len);
21 + len = strlen(mode) + 1;
22 + memcpy(cp, mode, len);
24 return (cp - (char *)tp);