From: Jes Sorensen <jes.soren...@redhat.com> Bug pointed out by Eric Blake, thanks!
Signed-off-by: Jes Sorensen <jes.soren...@redhat.com> --- cutils.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/cutils.c b/cutils.c index 7984bc1..f97ef39 100644 --- a/cutils.c +++ b/cutils.c @@ -294,7 +294,8 @@ int fcntl_setfl(int fd, int flag) ssize_t strtosz_suffix(const char *nptr, char **end, const char default_suffix) { ssize_t retval = -1; - char *endptr, c, d; + char *endptr; + unsigned char c, d; int mul_required = 0; double val, mul, integral, fraction; -- 1.7.3.4