From f3802db7a087d056ae1a0804ea0f7b503dd9c9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Andr=C3=A9=20dos=20Santos=20Lopes?= Date: Fri, 1 Jun 2012 15:13:59 +0200 Subject: Fixed write in constant memory. clang did not forgive. --- ext/intl/timezone/timezone_class.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/intl/timezone') 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; } -- cgit v1.2.1