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:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user