From: Wootak Jung Date: Mon, 27 Jun 2022 08:38:22 +0000 (+0900) Subject: Fix 64-bit env potential issue X-Git-Tag: submit/tizen/20220627.234713^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0;p=platform%2Fcore%2Ftelephony%2Flibtcore.git Fix 64-bit env potential issue 2nd parameter of g_base_decode() should be gsize type Change-Id: I13a2255934b7139114d1b7503c8ecd7222682fdb --- diff --git a/src/util.c b/src/util.c index 08c0c61..9da3a5c 100644 --- a/src/util.c +++ b/src/util.c @@ -1932,7 +1932,7 @@ GHashTable *tcore_util_marshal_deserialize_string(const gchar *serialized_string tuple = g_strsplit(serialized_string, " ", 0); while (strlen(tuple[count]) > 3) { - int tmp = 0; + gsize tmp = 0; guchar *content = NULL; gchar **inner_tuple = NULL; GValue *dest = g_new0(GValue, 1); @@ -1940,7 +1940,7 @@ GHashTable *tcore_util_marshal_deserialize_string(const gchar *serialized_string inner_tuple = g_strsplit(tuple[count], ":", 0); type = atoi(inner_tuple[1]); - content = g_base64_decode(inner_tuple[2], (gsize *)&tmp); + content = g_base64_decode(inner_tuple[2], &tmp); g_value_init(dest, type);