diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-06-26 00:18:29 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-06-26 00:18:29 +0200 |
commit | e0c1c866ffe02e0a0263ea14750eae32940e7e73 (patch) | |
tree | 6160ef5da64195cd4c18375ed6a7eb0bd32e0b2c /util/ifruset.c | |
parent | afca8e5a682f3b087d9e63cf88a1ab0bdcba523c (diff) | |
parent | cf37726b789ff5344c5ad376cee1fb99459e5785 (diff) |
Update upstream source from tag 'upstream/3.1.1'
Update to upstream version '3.1.1'
with Debian dir 8a00ab19696666598c7c15367cc89d75ebcf338e
Diffstat (limited to 'util/ifruset.c')
-rw-r--r-- | util/ifruset.c | 5 |
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; |