mirror of
https://github.com/curl/curl.git
synced 2026-06-01 22:24:15 +03: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:
parent
3c666ce57a
commit
973a18cf03
1 changed files with 2 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue