aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2000-07-20 14:54:04 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2000-07-20 14:54:04 +0000
commitc847fdb1f93a790b28aa3bd2fbb9899c1b44c401 (patch)
treea27ce899f19e54d27545f5641f9230c7b9194c6c /contrib
parentaa73302b038a5d45ef3aa8e705edd1f0d810fd74 (diff)
Notes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/telnet/telnet/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
index 86544e76758d..282695c34126 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;
}