strtosz(): use unsigned char and switch to qemu_isspace()
commitf3bd362a1857c617a4154062cadd501fc52c4199
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 24 Jan 2011 15:33:28 +0000 (24 16:33 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Jan 2011 09:02:59 +0000 (31 10:02 +0100)
tree3c2ca12f79b727f3dfa4868bc9af811c4d607c2f
parent45d1aa828f8c94b082a0aa2dbf76535594ee45df
strtosz(): use unsigned char and switch to qemu_isspace()

isspace() behavior is undefined for signed char.

Bug pointed out by Eric Blake, thanks!

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
cutils.c