lifecycle: Use snprintf() in favor of sprintf()
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
99b0d67b8e
commit
1a2298a759
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ append_to_buffer(char **buffer, size_t *buffer_len, char **end, const char *valu
|
|||
}
|
||||
|
||||
/* Append value to buffer */
|
||||
size_t printed = sprintf (*end, "%s ", value);
|
||||
size_t printed = snprintf (*end, value_len + 2, "%s ", value);
|
||||
if (printed < value_len + 1)
|
||||
/* Here be dragons */
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue