]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/test/run-test-backend.c
tal/str: move tal string functions here from tal.
[ccan] / ccan / tal / test / run-test-backend.c
index 4663a5664a0bfedcb93cde5b8094791f2bf863f7..66144cb3a7356efdf99fba0524acc2cb0d8831ab 100644 (file)
@@ -53,7 +53,8 @@ int main(void)
        tal_add_destructor(p, destroy_p);
 
        tal_set_name(p, "test");
-       name = tal_asprintf(NULL, "test2");
+       name = tal_arr(NULL, char, 6);
+       strcpy(name, "test2");
        tal_set_name(p, name);
        /* makes us free old name */
        tal_set_name(p, name);