diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-06-01 15:13:59 +0200 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-06-03 23:39:27 +0200 |
commit | f3802db7a087d056ae1a0804ea0f7b503dd9c9a3 (patch) | |
tree | 4e40e8cbf1e6954e04d46b159c5dc6fc70ff7734 /ext/intl/timezone | |
parent | 0c658c39f6b44438715a6185b6a22a793652dc0c (diff) | |
download | php-git-f3802db7a087d056ae1a0804ea0f7b503dd9c9a3.tar.gz |
Fixed write in constant memory.
clang did not forgive.
Diffstat (limited to 'ext/intl/timezone')
-rw-r--r-- | ext/intl/timezone/timezone_class.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/timezone/timezone_class.cpp b/ext/intl/timezone/timezone_class.cpp index 4034838f97..850da4a748 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; } |