cvs: ZendEngine2 / zend_exceptions.c

From: Date: Mon, 27 Mar 2006 03:41:39 +0000
Subject: cvs: ZendEngine2 / zend_exceptions.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4769@lists.php.net to get a copy of this message
andrei Mon Mar 27 03:41:39 2006 UTC Modified files: /ZendEngine2 zend_exceptions.c Log: Use (unsigned char) to make sure that only the control chars are replaced with '?'; http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_exceptions.c?r1=1.101&r2=1.102&diff_format=u Index: ZendEngine2/zend_exceptions.c diff -u ZendEngine2/zend_exceptions.c:1.101 ZendEngine2/zend_exceptions.c:1.102 --- ZendEngine2/zend_exceptions.c:1.101 Fri Mar 3 21:58:56 2006 +++ ZendEngine2/zend_exceptions.c Mon Mar 27 03:41:39 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_exceptions.c,v 1.101 2006/03/03 21:58:56 helly Exp $ */ +/* $Id: zend_exceptions.c,v 1.102 2006/03/27 03:41:39 andrei Exp $ */ #include "zend.h" #include "zend_API.h" @@ -377,7 +377,7 @@ l_added += 3 + 1; } while (--l_added) { - if ((*str)[*len - l_added] < 32) { + if ((unsigned char)(*str)[*len - l_added] < 32) { (*str)[*len - l_added] = '?'; } } @@ -397,7 +397,7 @@ l_added += 3 + 1; } while (--l_added) { - if ((*str)[*len - l_added] < 32) { + if ((unsigned char)(*str)[*len - l_added] < 32) { (*str)[*len - l_added] = '?'; } }

« previous php.zend-engine.cvs (#4769) next »