commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 09/10: pfinet: Fix array size hardcoded value


From: Samuel Thibault
Subject: [hurd] 09/10: pfinet: Fix array size hardcoded value
Date: Sun, 19 Nov 2017 15:27:17 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 7ce13b410d3cdf5c3365b9525e3a8a213f7f3c05
Author: Samuel Thibault <address@hidden>
Date:   Tue Sep 26 23:19:54 2017 +0200

    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
---
 pfinet/iioctl-ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pfinet/iioctl-ops.c b/pfinet/iioctl-ops.c
index f1c503d..be65958 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]