mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-24 04:38:05 +03:00
fixed bug where the string lenght wasnt decreased on some cases
This commit is contained in:
parent
1d508c0e04
commit
631e709471
@ -390,13 +390,16 @@ reswitch:
|
|||||||
}
|
}
|
||||||
case '%':
|
case '%':
|
||||||
*buf_p++ = static_cast<D>(ch);
|
*buf_p++ = static_cast<D>(ch);
|
||||||
|
llen--;
|
||||||
break;
|
break;
|
||||||
case '\0':
|
case '\0':
|
||||||
*buf_p++ = static_cast<D>('%');
|
*buf_p++ = static_cast<D>('%');
|
||||||
|
llen--;
|
||||||
goto done;
|
goto done;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
*buf_p++ = static_cast<D>(ch);
|
*buf_p++ = static_cast<D>(ch);
|
||||||
|
llen--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user