Loading...
--- Libc/Libc-763.13/stdlib/OpenBSD/gcvt.c
+++ Libc/Libc-1353.100.2/stdlib/OpenBSD/gcvt.c
@@ -68,7 +68,7 @@
sign = 0;
src = digits;
*dst++ = *src++;
- *dst++ = *lconv->decimal_point;
+ dst = stpcpy(dst, lconv->decimal_point);
while (*src != '\0')
*dst++ = *src++;
*dst++ = 'e';
@@ -101,7 +101,7 @@
if (*src != '\0') {
if (src == digits)
*dst++ = '0'; /* zero before decimal point */
- *dst++ = *lconv->decimal_point;
+ dst = stpcpy(dst, lconv->decimal_point);
for (i = decpt; digits[i] != '\0'; i++) {
*dst++ = digits[i];
}