diff --git a/telnet/commands.c b/telnet/commands.c index 86544e7..282695c 100644 --- a/telnet/commands.c +++ b/telnet/commands.c @@ -3038,7 +3038,7 @@ sourceroute(ai, arg, cpp, lenp, protop, optp) int *protop; int *optp; { - static char buf[1024]; /*XXX*/ + static char buf[1024 + ALIGNBYTES]; /*XXX*/ struct cmsghdr *cmsg; #ifdef sysV88 static IOPTN ipopt; @@ -3080,7 +3080,7 @@ sourceroute(ai, arg, cpp, lenp, protop, optp) lsrp = *cpp; ep = lsrp + *lenp; } else { - *cpp = lsrp = ALIGN(buf); + *cpp = lsrp = (char *)ALIGN(buf); ep = lsrp + 1024; }