summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2010-10-24 21:19:04 +0000
committerGustavo André dos Santos Lopes <cataphract@php.net>2010-10-24 21:19:04 +0000
commit20e2c5fc33d87d0294f15c0b8a08024c001acb0c (patch)
tree7d08a26e07fa0bec275e1e6ac69e6f625fc2b5ea
parent03de44f23e454423d676024b33ce0c4c806766bd (diff)
downloadphp-git-20e2c5fc33d87d0294f15c0b8a08024c001acb0c.tar.gz
- Fixed uninitialized and 1 character short local variable.
-rw-r--r--ext/standard/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c
index 7ca8416fe3..8cf4fe45be 100644
--- a/ext/standard/html.c
+++ b/ext/standard/html.c
@@ -1577,7 +1577,7 @@ static inline void write_s3row_data(
enum entity_charset charset,
zval *arr)
{
- char key[8]; /* two unicode code points in UTF-8 */
+ char key[9] = ""; /* two unicode code points in UTF-8 */
char entity[LONGEST_ENTITY_LENGTH + 2] = {'&'};
size_t written_k1;