diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 50c8e723cc22ed2bd03d892e450c01b02c7803d8..f55e6380d9dc56c3cdf9ac0dbc46c768c08103ab 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')