changeset 32753:401f661f11d4

2000-10-22 15:07:47 ShengHuo ZHU <zsh@cs.rochester.edu> * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
author ShengHuo ZHU <zsh@cs.rochester.edu>
date Sun, 22 Oct 2000 19:08:26 +0000
parents 923b8d6d8277
children 99a644bb452d
files src/ChangeLog src/fns.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Oct 22 16:50:16 2000 +0000
+++ b/src/ChangeLog	Sun Oct 22 19:08:26 2000 +0000
@@ -1,3 +1,8 @@
+2000-10-22 15:07:47  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+	* fns.c (Fbase64_decode_string): The decoded result should be
+	unibyte.
+
 2000-10-23  Andrew Choi  <akochoi@i-cable.com>
 
 	* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
--- a/src/fns.c	Sun Oct 22 16:50:16 2000 +0000
+++ b/src/fns.c	Sun Oct 22 19:08:26 2000 +0000
@@ -3550,8 +3550,9 @@
   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)