projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7f066f
)
Fix yaz_base64decode to use proper signed var YAZ-656
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 30 Apr 2013 11:37:35 +0000
(13:37 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 30 Apr 2013 11:37:35 +0000
(13:37 +0200)
Problem occurred on platforms with big endian and unsigned char (by
default).
src/base64.c
patch
|
blob
|
history
diff --git
a/src/base64.c
b/src/base64.c
index
cf6d63a
..
a8eb203
100644
(file)
--- 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)