mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
Use snprintf(...) instead of sprintf(...)
This commit is contained in:
committed by
Rusty Russell
parent
0f7b11bdc2
commit
9d9a9523d0
@@ -703,7 +703,7 @@ const char *{enumname}_name(int e)
|
||||
\t{cases}
|
||||
\t}}
|
||||
|
||||
\tsprintf(invalidbuf, "INVALID %i", e);
|
||||
\tsnprintf(invalidbuf, sizeof(invalidbuf), "INVALID %i", e);
|
||||
\treturn invalidbuf;
|
||||
}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user