projects
/
apps
/
home
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
785d23a
)
[test/blob] Fix bug in test
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 10 May 2011 21:48:34 +0000
(17:48 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 10 May 2011 21:48:34 +0000
(17:48 -0400)
test/test-blob.c
patch
|
blob
|
history
diff --git
a/test/test-blob.c
b/test/test-blob.c
index
91c1170
..
22d40b7
100644
(file)
--- a/
test/test-blob.c
+++ b/
test/test-blob.c
@@
-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;