Skip to content
Snippets Groups Projects
Commit 973a18cf authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

unsigned short. Trying a typecast here to fix.
parent 3c666ce5
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment