1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

In the Solaris 7 header files for tftp, the th_stuff struct member is an

unsigned short. Trying a typecast here to fix.
This commit is contained in:
Daniel Stenberg 2005-09-16 10:50:43 +00:00
parent 3c666ce57a
commit 973a18cf03

View File

@ -569,7 +569,8 @@ static int tftp(struct testcase *test, struct tftphdr *tp, int size)
/* store input protocol */
fprintf(test->server, "opcode: %x\n", tp->th_opcode);
filename = cp = tp->th_stuff;
cp = (char *)&tp->th_stuff;
filename = cp;
again:
while (cp < buf + size) {
if (*cp == '\0')