rpl_reporting: sprintf -> snprintf
This was failing to compile with AppleClang 14.0.0.14000029. Thanks to Arunesh Choudhary for noticing.
This commit is contained in:
parent
1efdf67e60
commit
15ca6c5a2f
@ -93,7 +93,7 @@ public:
|
|||||||
localtime_r(&skr, &tm_tmp);
|
localtime_r(&skr, &tm_tmp);
|
||||||
start=&tm_tmp;
|
start=&tm_tmp;
|
||||||
|
|
||||||
sprintf(timestamp, "%02d%02d%02d %02d:%02d:%02d",
|
snprintf(timestamp, sizeof(timestamp), "%02d%02d%02d %02d:%02d:%02d",
|
||||||
start->tm_year % 100,
|
start->tm_year % 100,
|
||||||
start->tm_mon+1,
|
start->tm_mon+1,
|
||||||
start->tm_mday,
|
start->tm_mday,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user