mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 12:03:07 +01:00
Fix sprintf deprecation error on MacOS build
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
This commit is contained in:
@@ -407,7 +407,7 @@ void format_readable_size(char* buf, size_t bufSize, uint64_t sizeBytes)
|
||||
char sizeType[128] = {};
|
||||
format_string(sizeType, sizeof(sizeType), SizeTable[idx], nullptr);
|
||||
|
||||
sprintf(buf, "%.03f %s", size, sizeType);
|
||||
snprintf(buf, bufSize, "%.03f %s", size, sizeType);
|
||||
}
|
||||
|
||||
void format_readable_speed(char* buf, size_t bufSize, uint64_t sizeBytes)
|
||||
|
||||
Reference in New Issue
Block a user