svn: /php/php-src/trunk/ext/unicode/ transform.c

From: Date: Tue, 16 Feb 2010 20:34:03 +0000
Subject: svn: /php/php-src/trunk/ext/unicode/ transform.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-61878@lists.php.net to get a copy of this message
stas Tue, 16 Feb 2010 20:34:03 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295183 Log: fix buffer overflow Changed paths: U php/php-src/trunk/ext/unicode/transform.c Modified: php/php-src/trunk/ext/unicode/transform.c =================================================================== --- php/php-src/trunk/ext/unicode/transform.c 2010-02-16 19:36:02 UTC (rev 295182) +++ php/php-src/trunk/ext/unicode/transform.c 2010-02-16 20:34:03 UTC (rev 295183) @@ -39,9 +39,9 @@ } if (variant) { - id_len = u_snprintf(id, sizeof(id)-1, "%S-%S/%S", from, to, variant); + id_len = u_snprintf(id, TEXT_CHARS(sizeof(id))-1, "%S-%S/%S", from, to, variant); } else { - id_len = u_snprintf(id, sizeof(id)-1, "%S-%S", from, to); + id_len = u_snprintf(id, TEXT_CHARS(sizeof(id))-1, "%S-%S", from, to); } if (id_len < 0) {

« previous php.cvs (#61878) next »