Page MenuHomeFreeBSD

D54290.diff
No OneTemporary

D54290.diff

diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -2848,7 +2848,7 @@
static int
sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp)
{
- static char buf[1024 + ALIGNBYTES]; /*XXX*/
+ static char buf[1024] __aligned(sizeof(void *)); /*XXX*/
unsigned char *cp, *cp2, *lsrp, *ep;
struct sockaddr_in *_sin;
#ifdef INET6
@@ -2888,7 +2888,7 @@
lsrp = *cpp;
ep = lsrp + *lenp;
} else {
- *cpp = lsrp = (char *)ALIGN(buf);
+ *cpp = lsrp = buf;
ep = lsrp + 1024;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 16, 5:42 AM (15 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35125282
Default Alt Text
D54290.diff (641 B)

Event Timeline