summaryrefslogtreecommitdiff
path: root/src/fns.c
diff options
context:
space:
mode:
authorShengHuo ZHU <zsh@cs.rochester.edu>2000-10-22 19:08:26 +0000
committerShengHuo ZHU <zsh@cs.rochester.edu>2000-10-22 19:08:26 +0000
commit8ec118cdd6f4a8ca65199eecb01f0c68d05ab4f2 (patch)
treead2d4f9362ed9b8fd0cb686afb6997bd0046964d /src/fns.c
parent1a578e9be2034298bb8ac29b7b84086a4ab290f4 (diff)
downloademacs-8ec118cdd6f4a8ca65199eecb01f0c68d05ab4f2.tar.gz
2000-10-22 15:07:47 ShengHuo ZHU <zsh@cs.rochester.edu>
* fns.c (Fbase64_decode_string): The decoded result should be unibyte.
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index 0568a6e31df..854c46cdc6b 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -3550,8 +3550,9 @@ DEFUN ("base64-decode-string", Fbase64_decode_string, Sbase64_decode_string,
else
decoded = (char *) xmalloc (length);
+ /* The decoded result should be unibyte. */
decoded_length = base64_decode_1 (XSTRING (string)->data, decoded, length,
- STRING_MULTIBYTE (string), NULL);
+ 0, NULL);
if (decoded_length > length)
abort ();
else if (decoded_length >= 0)