patch-1.3.60 linux/net/ipv4/packet.c

Next file: linux/net/ipv4/raw.c
Previous file: linux/net/ipv4/ipmr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.59/linux/net/ipv4/packet.c linux/net/ipv4/packet.c
@@ -436,7 +436,7 @@
 	if (saddr) 
 	{
 		saddr->sa_family = skb->dev->type;
-		memcpy(saddr->sa_data,skb->dev->name, 14);
+		strncpy(saddr->sa_data,skb->dev->name, 15);
 	}
 	
 	/*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this