Page MenuHomeFreeBSD

D54290.id.diff
No OneTemporary

D54290.id.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
Sun, Jun 21, 4:29 PM (11 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34149699
Default Alt Text
D54290.id.diff (641 B)

Event Timeline