diff options
Diffstat (limited to 'src/shared/printf.c')
-rw-r--r-- | src/shared/printf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/printf.c b/src/shared/printf.c index 514b73e..fffd801 100644 --- a/src/shared/printf.c +++ b/src/shared/printf.c @@ -187,6 +187,7 @@ int __printf_internal(const char *fmt, va_list argp, case 's': const char *s = va_arg(argp, char*); if (s == NULL) s = "(null)"; + // TODO can segfault even if precision caps the string len = strlen(s); if (len > m.precision && m.precision != 0) len = m.precision; |