From: Bob Weinand Date: Fri, 17 Oct 2014 17:39:09 +0000 (+0200) Subject: Remove accidentally added null-byte in attributes X-Git-Tag: php-5.6.3RC1~51^2~52^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0e67720d4585f18130767b39501bd39de71acae;p=php Remove accidentally added null-byte in attributes --- diff --git a/phpdbg_utils.c b/phpdbg_utils.c index 991a6c2363..5f94d21648 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -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;