提交 f82c1863 编写于 作者: B Behdad Esfahbod

[test/blob] Fix bug in test

上级 785d23ac
......@@ -157,7 +157,8 @@ fixture_init (fixture_t *fixture, gconstpointer user_data)
break;
case HB_MEMORY_MODE_WRITABLE:
data = strndup (test_data, sizeof (test_data));
data = malloc (sizeof (test_data));
memcpy ((char *) data, test_data, sizeof (test_data));
len = sizeof (test_data);
free_func = (hb_destroy_func_t) free_up_free;
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册