Commit:    f3802db7a087d056ae1a0804ea0f7b503dd9c9a3
Author:    Gustavo André dos Santos Lopes <cataphr...@php.net>         Fri, 1 
Jun 2012 15:13:59 +0200
Parents:   0c658c39f6b44438715a6185b6a22a793652dc0c
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=f3802db7a087d056ae1a0804ea0f7b503dd9c9a3

Log:
Fixed write in constant memory.

clang did not forgive.

Changed paths:
  M  ext/intl/timezone/timezone_class.cpp


Diff:
diff --git a/ext/intl/timezone/timezone_class.cpp 
b/ext/intl/timezone/timezone_class.cpp
index 4034838..850da4a 100644
--- a/ext/intl/timezone/timezone_class.cpp
+++ b/ext/intl/timezone/timezone_class.cpp
@@ -62,7 +62,7 @@ U_CFUNC TimeZone *timezone_convert_datetimezone(int type,
                                                                                
                intl_error *outside_error,
                                                                                
                const char *func TSRMLS_DC)
 {
-       const char      *id = NULL,
+       char            *id = NULL,
                                offset_id[] = "GMT+00:00";
        int                     id_len = 0;
        char            *message;
@@ -93,7 +93,7 @@ U_CFUNC TimeZone *timezone_convert_datetimezone(int type,
                        }
 
                        id = offset_id;
-                       id_len = slprintf((char*)id, sizeof(offset_id), 
"GMT%+03d:%02d",
+                       id_len = slprintf(id, sizeof(offset_id), 
"GMT%+03d:%02d",
                                hours, minutes);
                        break;
                }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to