com php-src: Remove accidentally added null-byte in attributes: phpdbg_utils.c
| From: | Bob Weinand | Date: | Fri, 17 Oct 2014 17:39:09 +0000 |
| Subject: | com php-src: Remove accidentally added null-byte in attributes: phpdbg_utils.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82555@lists.php.net to get a copy of this message | ||
Commit: f0e67720d4585f18130767b39501bd39de71acae
Author: Bob Weinand <bobwei9@hotmail.com> Fri, 17 Oct 2014 19:39:09 +0200
Parents: afe01e4956f37090a52a5bebf25bf4c8b57da8c5
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f0e67720d4585f18130767b39501bd39de71acae
Log:
Remove accidentally added null-byte in attributes
Changed paths:
M phpdbg_utils.c
Diff:
diff --git a/phpdbg_utils.c b/phpdbg_utils.c
index 991a6c2..5f94d21 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;