diff --git a/options/ansi/generic/time-stubs.cpp b/options/ansi/generic/time-stubs.cpp index ef9ec55d46..2a06c44aa9 100644 --- a/options/ansi/generic/time-stubs.cpp +++ b/options/ansi/generic/time-stubs.cpp @@ -374,6 +374,14 @@ size_t strftime(char *__restrict dest, size_t max_size, c++; break; } + case 'n': { + chunk = snprintf(p, space, "\n"); + if(chunk >= space) + return 0; + p += chunk; + c++; + break; + } case 't': { chunk = snprintf(p, space, "\t"); if(chunk >= space)