diff options
-rw-r--r-- | contrib/telnet/telnet/commands.c | 4 | ||||
-rw-r--r-- | crypto/telnet/telnet/commands.c | 4 | ||||
-rw-r--r-- | usr.bin/telnet/commands.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c index 86544e7..282695c 100644 --- a/contrib/telnet/telnet/commands.c +++ b/contrib/telnet/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; } diff --git a/crypto/telnet/telnet/commands.c b/crypto/telnet/telnet/commands.c index 86544e7..282695c 100644 --- a/crypto/telnet/telnet/commands.c +++ b/crypto/telnet/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; } diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index 12904b8..1ab5e54 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -2859,7 +2859,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; @@ -2901,7 +2901,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; } |