aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-09-16 10:50:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-09-16 10:50:43 +0000
commit973a18cf0357ccf0db64590fc040cd45b4f28321 (patch)
tree5125cfa26a4a190000cb4821316374d8d3cee76e
parent3c666ce57af3d0ed85b6f7e34b997f81e901bb86 (diff)
In the Solaris 7 header files for tftp, the th_stuff struct member is an
unsigned short. Trying a typecast here to fix.
-rw-r--r--tests/server/tftpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index 50c8e723c..f55e6380d 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -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')