aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcz7asm <cz7asm@gmail.com>2018-12-05 12:42:46 +0100
committerGitHub <noreply@github.com>2018-12-05 12:42:46 +0100
commit4b60eb6973b384bf12223a923d24865ddbe97778 (patch)
treedc0251954bc1b15791e395dacf7d7a7f8378866b
parentb04d55907f040e376f96aad950d1e8d3723bbb07 (diff)
downloadprintf-4b60eb6973b384bf12223a923d24865ddbe97778.tar.gz
printf-4b60eb6973b384bf12223a923d24865ddbe97778.tar.bz2
printf-4b60eb6973b384bf12223a923d24865ddbe97778.zip
fixing last fix
missing function argument
-rw-r--r--printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/printf.c b/printf.c
index 93a2f0f..9905032 100644
--- a/printf.c
+++ b/printf.c
@@ -649,7 +649,7 @@ static int _vsnprintf(out_fct_type out, char* buffer, const size_t maxlen, const
case 's' : {
char* p = va_arg(va, char*);
- unsigned int l = _strlen(p);
+ unsigned int l = _strlen(p, precision);
// pre padding
if (flags & FLAGS_PRECISION) {
l = (l < precision ? l : precision);