1
0
Fork 0

fixing last fix

missing function argument
development
cz7asm 6 years ago committed by GitHub
parent b04d55907f
commit 4b60eb6973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -649,7 +649,7 @@ static int _vsnprintf(out_fct_type out, char* buffer, const size_t maxlen, const
case 's' : { case 's' : {
char* p = va_arg(va, char*); char* p = va_arg(va, char*);
unsigned int l = _strlen(p); unsigned int l = _strlen(p, precision);
// pre padding // pre padding
if (flags & FLAGS_PRECISION) { if (flags & FLAGS_PRECISION) {
l = (l < precision ? l : precision); l = (l < precision ? l : precision);

Loading…
Cancel
Save