Fix 64-bit env potential issue 75/276875/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063246 accepted/tizen/7.0/unified/hotfix/20221116.105842 accepted/tizen/unified/20220628.133528 submit/tizen/20220627.234713 tizen_7.0_m2_release
authorWootak Jung <wootak.jung@samsung.com>
Mon, 27 Jun 2022 08:38:22 +0000 (17:38 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 27 Jun 2022 08:38:22 +0000 (17:38 +0900)
2nd parameter of g_base_decode() should be gsize type

Change-Id: I13a2255934b7139114d1b7503c8ecd7222682fdb

src/util.c

index 08c0c61..9da3a5c 100644 (file)
@@ -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);