summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-26 23:19:54 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-26 23:20:53 +0200
commit7ce13b410d3cdf5c3365b9525e3a8a213f7f3c05 (patch)
treec1f13c627a0cf377123889b1e368b509d1e750a0 /pfinet
parent7e3ec78468c108be00fa13e8b3d4e2f0c4ebbf42 (diff)
pfinet: Fix array size hardcoded value
as hinted by Joan Lledó * pfinet/iioctl-ops.c (get_dev): Set ifname size to IFNAMSIZ instead of hardcoded value
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/iioctl-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/iioctl-ops.c b/pfinet/iioctl-ops.c
index f1c503d4..be659582 100644
--- a/pfinet/iioctl-ops.c
+++ b/pfinet/iioctl-ops.c
@@ -49,7 +49,7 @@ extern void inquire_device (struct device *dev, uint32_t *addr,
/* Truncate name, take the global lock and find device with this name. */
struct device *get_dev (char *name)
{
- char ifname[16];
+ char ifname[IFNAMSIZ];
struct device *dev;
memcpy (ifname, name, IFNAMSIZ-1);