Skip to content

Commit 4b60eb6

Browse files
authored
fixing last fix
missing function argument
1 parent b04d559 commit 4b60eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

printf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ static int _vsnprintf(out_fct_type out, char* buffer, const size_t maxlen, const
649649

650650
case 's' : {
651651
char* p = va_arg(va, char*);
652-
unsigned int l = _strlen(p);
652+
unsigned int l = _strlen(p, precision);
653653
// pre padding
654654
if (flags & FLAGS_PRECISION) {
655655
l = (l < precision ? l : precision);

0 commit comments

Comments
 (0)