mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
utils.c: NULL terminate ast_base64decode_string.
With the addition of STIR/SHAKEN, the function ast_base64decode_string was added for convenience since there is a lot of converting done during the STIR/SHAKEN process. This function returned the decoded string for you, but did not NULL terminate it, causing some issues (specifically with MALLOC_DEBUG). Now, the returned string is NULL terminated, and the documentation has been updated to reflect this. Change-Id: Icdd7d05b323b0c47ff6ed43492937a03641bdcf5
This commit is contained in:
@@ -267,7 +267,7 @@ int ast_base64decode(unsigned char *dst, const char *src, int max);
|
||||
* \brief Same as ast_base64decode, but does the math for you and returns
|
||||
* a decoded string
|
||||
*
|
||||
* \note The returned string will need to be freed later
|
||||
* \note The returned string will need to be freed later and IS NULL terminated
|
||||
*
|
||||
* \param src The source buffer
|
||||
*
|
||||
|
Reference in New Issue
Block a user