]> granicus.if.org Git - php/commitdiff
- Fixed uninitialized and 1 character short local variable.
authorGustavo André dos Santos Lopes <cataphract@php.net>
Sun, 24 Oct 2010 21:19:04 +0000 (21:19 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Sun, 24 Oct 2010 21:19:04 +0000 (21:19 +0000)
ext/standard/html.c

index 7ca8416fe30cf25624932ee4880a71fe6dd6f68f..8cf4fe45be535e4071fe6a72555ff25e832f45e6 100644 (file)
@@ -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;