Return value from snprintf is type int
This commit is contained in:
@@ -1015,7 +1015,7 @@ static bool append_str(
|
|||||||
const char *add_str)
|
const char *add_str)
|
||||||
{
|
{
|
||||||
bool retval;
|
bool retval;
|
||||||
uint16_t bytes_written;
|
int bytes_written;
|
||||||
|
|
||||||
bytes_written = snprintf(*str, *rem_str_len, "%s", add_str);
|
bytes_written = snprintf(*str, *rem_str_len, "%s", add_str);
|
||||||
if ((bytes_written < 0) || (bytes_written >= *rem_str_len)) {
|
if ((bytes_written < 0) || (bytes_written >= *rem_str_len)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user