1
0
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:
ltsSmitty
2022-08-09 14:31:15 -04:00
committed by GitHub
parent 39722307d2
commit e0e7227dae

View File

@@ -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)