projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c666ce
)
In the Solaris 7 header files for tftp, the th_stuff struct member is an
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 16 Sep 2005 10:50:43 +0000
(10:50 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 16 Sep 2005 10:50:43 +0000
(10:50 +0000)
unsigned short. Trying a typecast here to fix.
tests/server/tftpd.c
patch
|
blob
|
history
diff --git
a/tests/server/tftpd.c
b/tests/server/tftpd.c
index
50c8e72
..
f55e638
100644
(file)
--- 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')