The macOS toolchain deprecated sprintf in favor of snprintf. This was blocking
the build on macOS. Replaced all instances of sprintf by snprintf.
++expo;
}
if (q >= buffer && q < buffer + sizeof buffer) {
- std::sprintf(q + result.length, "e%d", expo);
+ std::snprintf(q + result.length, sizeof buffer, "e%d", expo);
}
const char *p{q};
auto rflags{ConvertDecimalToFloat(&p, &y, RoundNearest)};
if (*q == '-' || *q == '+') {
++expo;
}
- std::sprintf(q + result.length, "e%d", expo);
+ std::snprintf(q + result.length, sizeof buffer, "e%d", expo);
}
const char *p{q};
auto rflags{ConvertDecimalToFloat(&p, &y, RoundNearest)};