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
- Lines: 9
- Date:
Wed Feb 7 08:55:46 1996
- Orig file:
v1.3.59/linux/net/ipv4/packet.c
- Orig date:
Wed Nov 8 07:11:46 1995
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