summaryrefslogtreecommitdiff
path: root/util/ifruset.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-06-26 00:18:21 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-06-26 00:18:21 +0200
commitcf37726b789ff5344c5ad376cee1fb99459e5785 (patch)
tree1866c2e382837fd5978619fffe41141796d58956 /util/ifruset.c
parentfc806628dbeecd34f41b2f6d04290631dca3955e (diff)
New upstream version 3.1.1upstream/3.1.1
Diffstat (limited to 'util/ifruset.c')
-rw-r--r--util/ifruset.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/ifruset.c b/util/ifruset.c
index fbde21e..b2f8b66 100644
--- a/util/ifruset.c
+++ b/util/ifruset.c
@@ -245,7 +245,7 @@ int
load_fru(uchar sa, uchar frudev, uchar frutype)
{
int ret = 0;
- uchar indata[16];
+ uchar indata[FRUCHUNK_SZ];
uchar resp[18];
int sresp;
uchar cc;
@@ -255,6 +255,7 @@ load_fru(uchar sa, uchar frudev, uchar frutype)
int i;
int chunk;
+ memset(indata, 0, sizeof(indata));
indata[0] = frudev;
sresp = sizeof(resp);
if (fdebug) printf("load_fru: sa = %02x, frudev = %02x\n",sa,frudev);
@@ -923,7 +924,7 @@ write_fru_data(uchar id, ushort offset, uchar *data, int dlen, char fdebug)
int ret = -1;
int chunk;
ushort fruoff;
- uchar req[25];
+ uchar req[FRUCHUNK_SZ+9];
uchar resp[16];
int sresp;
uchar cc;