From 68694e31418501151b6d7996574b31ad60db2dcd Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Thu, 16 Oct 2014 11:04:45 +0200 Subject: [PATCH] Fix invalid dereference --- phpdbg_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpdbg_utils.c b/phpdbg_utils.c index 41178870f4..991a6c2363 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -1103,7 +1103,7 @@ static void phpdbg_encode_ctrl_chars(char **buf, int *buflen) { len += 4; *tmpptr++ = '&'; *tmpptr++ = '#'; - if ((unsigned int) buf[i] > 10) { + if ((unsigned int) ((*buf)[i]) > 10) { *tmpptr++ = ((*buf)[i] / 10) + '0'; } else { --len; -- 2.40.0