projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
[pspp]
/
lib
/
base64.c
diff --git
a/lib/base64.c
b/lib/base64.c
index 7682f859d3a5875a062bc91c12e55025be6b1218..1fe719c95c010d286b8318f9628ccb2e34bd0611 100644
(file)
--- a/
lib/base64.c
+++ b/
lib/base64.c
@@
-74,7
+74,7
@@
base64_encode (const char *restrict in, size_t inlen,
while (inlen && outlen)
{
- *out++ = b64str[
to_uchar (in[0]) >> 2
];
+ *out++ = b64str[
(to_uchar (in[0]) >> 2) & 0x3f
];
if (!--outlen)
break;
*out++ = b64str[((to_uchar (in[0]) << 4)