mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 08:51:07 +01:00
[test/blob] Fix bug in test
This commit is contained in:
1 parent
785d23acd0
commit
f82c186304
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user