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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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')