commit | f82c18630471216a04e4e3ad42396da4e6d74cba | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue May 10 17:48:34 2011 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue May 10 17:48:34 2011 -0400 |
tree | 4c466852c61c2366b83f404fe3e8f9209bcb756a | |
parent | 785d23acd0ce72d399f9c5021bebc854872648af [diff] |
[test/blob] Fix bug in test
diff --git a/test/test-blob.c b/test/test-blob.c index 91c1170..22d40b7 100644 --- a/test/test-blob.c +++ b/test/test-blob.c
@@ -157,7 +157,8 @@ 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;