From 2c293bcf3f3d36ca121b1e23769919c941e8ea19 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 30 Apr 2013 13:37:35 +0200 Subject: [PATCH] Fix yaz_base64decode to use proper signed var YAZ-656 Problem occurred on platforms with big endian and unsigned char (by default). --- src/base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base64.c b/src/base64.c index cf6d63a..a8eb203 100644 --- a/src/base64.c +++ b/src/base64.c @@ -85,7 +85,7 @@ int yaz_base64decode(const char *in, char *out) while (len >= 4) { - char i0, i1, i2, i3; + int i0, i1, i2, i3; i0 = next_char(&in, &len); if (i0 < 0) -- 1.7.10.4