# HG changeset patch # User ShengHuo ZHU # Date 972241706 0 # Node ID 401f661f11d475d6cf3defceb07752b957ce9da9 # Parent 923b8d6d8277f9accb50da8fd77bf883ddd905bd 2000-10-22 15:07:47 ShengHuo ZHU * fns.c (Fbase64_decode_string): The decoded result should be unibyte. diff -r 923b8d6d8277 -r 401f661f11d4 src/ChangeLog --- 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 + + * fns.c (Fbase64_decode_string): The decoded result should be + unibyte. + 2000-10-23 Andrew Choi * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. diff -r 923b8d6d8277 -r 401f661f11d4 src/fns.c --- 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)