diff options
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -3550,8 +3550,9 @@ DEFUN ("base64-decode-string", Fbase64_decode_string, Sbase64_decode_string, | |||
| 3550 | else | 3550 | else |
| 3551 | decoded = (char *) xmalloc (length); | 3551 | decoded = (char *) xmalloc (length); |
| 3552 | 3552 | ||
| 3553 | /* The decoded result should be unibyte. */ | ||
| 3553 | decoded_length = base64_decode_1 (XSTRING (string)->data, decoded, length, | 3554 | decoded_length = base64_decode_1 (XSTRING (string)->data, decoded, length, |
| 3554 | STRING_MULTIBYTE (string), NULL); | 3555 | 0, NULL); |
| 3555 | if (decoded_length > length) | 3556 | if (decoded_length > length) |
| 3556 | abort (); | 3557 | abort (); |
| 3557 | else if (decoded_length >= 0) | 3558 | else if (decoded_length >= 0) |