Fixed issue #24

This commit is contained in:
bzt 2021-12-03 10:09:05 +01:00
parent 4d87d3d3ff
commit d0282646db

View file

@ -550,8 +550,8 @@ int vsnprintf(char_t *dst, size_t maxlen, const char_t *fmt, __builtin_va_list a
if(sign) {
tmpstr[--i]=CL('-');
}
if(len>0 && len<21) {
while(i>21-len) {
if(len>0 && len<23) {
while(i && i>23-len) {
tmpstr[--i]=pad;
}
}