summaryrefslogtreecommitdiffstats
path: root/src/util/fixrom.pl
diff options
context:
space:
mode:
authorDaniel P. Berrange2013-03-05 16:18:20 +0100
committerMichael Brown2013-03-05 16:23:01 +0100
commiteb5a2ba5962579e514b377f5fdab7292be0fb2a7 (patch)
tree0b5c350336055b2cd4043a9aa50fe2a20e34dfa7 /src/util/fixrom.pl
parent[undi] Work around specific devices with known broken interrupt behaviour (diff)
downloadipxe-eb5a2ba5962579e514b377f5fdab7292be0fb2a7.tar.gz
ipxe-eb5a2ba5962579e514b377f5fdab7292be0fb2a7.tar.xz
ipxe-eb5a2ba5962579e514b377f5fdab7292be0fb2a7.zip
[zbin] Fix size used for memset in alloc_output_file
The output->buf field is a pointer, not an array, so sizeof() is not applicable. We must use the allocated string length instead. Identified by gcc: util/zbin.c: In function ‘alloc_output_file’: util/zbin.c:146:37: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset ( output->buf, 0xff, sizeof ( output->buf ) ); Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util/fixrom.pl')
0 files changed, 0 insertions, 0 deletions