utests: fix warning message
[platform/core/uifw/libtdm.git] / utests / src / ut_tdm_backend_display.cpp
index 58127a8..e836407 100644 (file)
@@ -81,7 +81,7 @@ void TDMBackendBasic::SetUp(void)
                ASSERT_GT(count, 0);
 
                layer_count += count;
-               layers = (tdm_layer**)realloc((void*)layers, sizeof(tdm_layer*) * layer_count);
+               layers = realloc(layers, layer_count * sizeof(tdm_layer*));
                ASSERT_NE(layers, NULL);
 
                for (int l = 0; l < count; l++) {