aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libc/print.c')
-rw-r--r--libs/libc/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/libc/print.c b/libs/libc/print.c
index da8ab25..264f893 100644
--- a/libs/libc/print.c
+++ b/libs/libc/print.c
@@ -54,7 +54,7 @@ int vsnprintf(char *str, u32 size, const char *format, va_list ap)
break;
case 'f':
temp_double = va_arg(ap, double);
- ftoa(temp_double, buffer);
+ ftoa(temp_double, buffer, 5);
length += strlcpy(&str[length], buffer, size - length);
break;
default: