Fix sprintf deprecation error on MacOS build

Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
This commit is contained in:
ltsSmittyandGymnasiast authored and GitHub committed 2022-08-09 20:31:15 +02:00
1 parent 39722307d2
commit e0e7227dae
1 file changed
+1 -1
+1 -1
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)