1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00

2000-10-22 15:07:47 ShengHuo ZHU <zsh@cs.rochester.edu>

* fns.c (Fbase64_decode_string): The decoded result should be
	unibyte.
This commit is contained in:
ShengHuo ZHU 2000-10-22 19:08:26 +00:00
parent 1a578e9be2
commit 8ec118cdd6
2 changed files with 7 additions and 1 deletions

View file

@ -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.

View file

@ -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)