mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 08:39:49 +02:00
fix build warnings related to aixlog
This commit is contained in:
parent
7f0e1c2b14
commit
e740adacb1
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
/ _\ ( )( \/ )( ) / \ / __)
|
||||
/ \ )( ) ( / (_/\( O )( (_ \
|
||||
\_/\_/(__)(_/\_)\____/ \__/ \___/
|
||||
version 1.2.2
|
||||
version 1.2.3
|
||||
https://github.com/badaix/aixlog
|
||||
|
||||
This file is part of aixlog
|
||||
|
@ -284,7 +284,7 @@ struct Timestamp
|
|||
{
|
||||
int ms_part = std::chrono::time_point_cast<std::chrono::milliseconds>(time_point).time_since_epoch().count() % 1000;
|
||||
char ms_str[4];
|
||||
sprintf(&ms_str[0], "%03d", ms_part);
|
||||
snprintf(ms_str, 4, "%03d", ms_part);
|
||||
result.replace(pos, 3, ms_str);
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue