mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fix String is not zero-terminated error in base64_decode
This commit is contained in:
parent
07efbff856
commit
8fe3c0c5d4
@ -188,7 +188,7 @@ unsigned char *php_base64_decode(const unsigned char *str, int length, int *ret_
|
||||
if(ret_length) {
|
||||
*ret_length = j;
|
||||
}
|
||||
result[k] = '\0';
|
||||
result[j] = '\0';
|
||||
return result;
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user