options/ansi: fix `strftime` return value
Previously, the return value included the terminating null byte, which
is incorrect. Just as with the sprintf family, the return value is the
number of written bytes, excluding the null byte.
@@ -272,7 +272,7 @@ size_t strftime(char *__restrict dest, size_t max_size,
return 0;
*p = '\0';
- return (p - dest) + 1;
+ return (p - dest);
}
size_t wcsftime(wchar_t *__restrict, size_t, const wchar_t *__restrict,
