Skip to content

Commit

Permalink
fixing last fix
Browse files Browse the repository at this point in the history
missing function argument
  • Loading branch information
cz7asm committed Dec 5, 2018
1 parent b04d559 commit 4b60eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b60eb6

Please sign in to comment.