aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/print.c
diff options
context:
space:
mode:
authorMarvin Borner2021-05-24 18:50:55 +0200
committerMarvin Borner2021-05-24 19:05:59 +0200
commit91ba8d02037cc27c7b44f1bfd492c42ccd0af042 (patch)
tree4006f8b37c2e70ddceb6fbb70dd2c690c5cf6035 /libs/libc/print.c
parenta0a1b1318dc886c72eaf60792dbb40f1ea3eeb97 (diff)
Added more tests and fixed dumb bugs
typical
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: