opengnsys_ipxe/src
Daniel P. Berrange eb5a2ba596 [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>
2013-03-05 15:23:01 +00:00
..
arch [undi] Work around specific devices with known broken interrupt behaviour 2013-03-05 14:22:53 +00:00
bin Rename .cvsignore files to .gitignore 2007-06-09 22:57:00 +01:00
config [console] Add support for the bochs/qemu debug port console 2012-09-10 15:58:02 +01:00
core [tls] Concatenate received non-data records before processing 2013-01-31 09:59:36 +00:00
crypto [crypto] Allow in-place CBC decryption 2012-09-27 01:54:55 +01:00
doc [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
drivers [tg3] Fix various tg3 issues 2013-03-04 21:56:24 +00:00
hci [readline] Allow readline_history() to return a meaningful status 2012-10-24 23:24:43 -07:00
image [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
include [netdevice] Add vlan_tag() to get the VLAN tag of a network device 2013-03-01 16:11:40 +00:00
interface [efi] Include product short name in EFI SNP device names 2012-11-21 03:43:43 +00:00
libgcc [build] Mark __intel_new_proc_init with __libgcc rather than cdecl 2009-08-03 15:56:10 +01:00
net [netdevice] Separate VLAN support from presence of VLAN-supporting drivers 2013-03-01 16:36:34 +00:00
tests [test] Add self-tests for string functions 2012-11-12 16:58:49 +00:00
usr [cmdline] Add standalone "nslookup" command 2012-09-10 15:31:14 +01:00
util [zbin] Fix size used for memset in alloc_output_file 2013-03-05 15:23:01 +00:00
.gitignore [build] Add support for local configuration files 2010-03-26 19:07:22 +00:00
Makefile [build] Include self-tests within "make everything" 2013-01-31 10:12:58 +00:00
Makefile.housekeeping [build] Make version.o depend on the git index 2012-11-02 15:00:09 +00:00
doxygen.cfg [build] Remove PACKED macro 2010-05-29 23:49:47 +01:00