]> xenbits.xensource.com Git - libvirt.git/commit
parthelper: fix compilation without optimization
authorEric Blake <eblake@redhat.com>
Mon, 14 Jun 2010 20:54:31 +0000 (14:54 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 14 Jun 2010 21:11:49 +0000 (15:11 -0600)
commit352b6df34d930eb6e7c1f79f295ab6dff9b273e2
tree3413dead5b8b20018d70c1d168616697bc6d353c
parentbc8d9f2077f2b839d4969f87d03a0a0c144e1109
parthelper: fix compilation without optimization

Daniel's patch works with gcc and CFLAGS containing -O (the
autoconf default), but fails with non-gcc or with other
CFLAGS (such as -g), since c-ctype.h declares c_isdigit as
a macro only for certain compilation settings.

* src/Makefile.am (libvirt_parthelper_LDFLAGS): Add gnulib
library, for when c_isdigit is not a macro.
* src/storage/parthelper.c (main): Avoid out-of-bounds
dereference, noticed by Jim Meyering.
src/Makefile.am
src/storage/parthelper.c