1
0
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:
Bob Weinand
2014-10-17 19:39:09 +02:00
parent afe01e4956
commit f0e67720d4
+1 -1
View File
@@ -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("&amp;"));
tmp += sizeof("&amp;") - 1;