Return value from snprintf is type int

This commit is contained in:
koby3101
2017-01-09 13:35:45 +00:00
parent 79af8b60df
commit 5e5c2d616a
+1 -1
View File
@@ -1015,7 +1015,7 @@ static bool append_str(
const char *add_str)
{
bool retval;
uint16_t bytes_written;
int bytes_written;
bytes_written = snprintf(*str, *rem_str_len, "%s", add_str);
if ((bytes_written < 0) || (bytes_written >= *rem_str_len)) {