mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 18:38:37 +00:00
extensions/curl/curl-src/src/writeout.c: fixed a buffer read overrun on --write-out
This commit is contained in:
parent
6d13a70b99
commit
3ad5836f92
@ -109,7 +109,7 @@ void ourWriteOut(CURL *curl, const char *writeinfo)
|
|||||||
double doubleinfo;
|
double doubleinfo;
|
||||||
|
|
||||||
while(*ptr) {
|
while(*ptr) {
|
||||||
if('%' == *ptr) {
|
if('%' == *ptr && ptr[1]) {
|
||||||
if('%' == ptr[1]) {
|
if('%' == ptr[1]) {
|
||||||
/* an escaped %-letter */
|
/* an escaped %-letter */
|
||||||
fputc('%', stream);
|
fputc('%', stream);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user