mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
Remove accidentally added null-byte in attributes
This commit is contained in:
+1
-1
@@ -1069,7 +1069,7 @@ static int phpdbg_encode_xml(char **buf, char *msg, int msglen, int from, char *
|
||||
int i;
|
||||
int tolen = to ? strlen(to) : 5;
|
||||
char *tmp = *buf = emalloc(msglen * tolen);
|
||||
for (i = 0; i++ < msglen; msg++) {
|
||||
for (i = 0; ++i < msglen; msg++) {
|
||||
if (*msg == '&') {
|
||||
memcpy(tmp, ZEND_STRL("&"));
|
||||
tmp += sizeof("&") - 1;
|
||||
|
||||
Reference in New Issue
Block a user