[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
- [hurd] branch upstream updated (796f878 -> 83fef6c), Samuel Thibault, 2017/11/19
- [hurd] 02/10: libdiskfs: Improve error message., Samuel Thibault, 2017/11/19
- [hurd] 03/10: eth-multiplexer: Remove unused function., Samuel Thibault, 2017/11/19
- [hurd] 06/10: eth-multiplexer: Remove unused macro., Samuel Thibault, 2017/11/19
- [hurd] 09/10: pfinet: Fix array size hardcoded value,
Samuel Thibault <=
- [hurd] 01/10: fshelp: Fix fetching control ports., Samuel Thibault, 2017/11/19
- [hurd] 08/10: pfinet: Avoid returning udp errors unless requested, Samuel Thibault, 2017/11/19
- [hurd] 10/10: Make devprobe able to talk with userland drivers, Samuel Thibault, 2017/11/19
- [hurd] 05/10: eth-multiplexer: Fix debug macro., Samuel Thibault, 2017/11/19
- [hurd] 04/10: eth-multiplexer: Simplify device creation., Samuel Thibault, 2017/11/19
- [hurd] 07/10: eth-multiplexer: Avoid copying data multiple times., Samuel Thibault, 2017/11/19