X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftal%2Fstr%2Ftest%2Frun-string.c;fp=ccan%2Ftal%2Fstr%2Ftest%2Frun-string.c;h=bb614ae2fa070e09af6da909cc61b456ec2693c2;hb=4710a92838fc03ffa54ce2bc60cf0e214c97a199;hp=5246a8aa0513e0f44c0d1f864be9d7fdf087444d;hpb=a5ebf3146a57b7db05f6b6e2de0f2689a1b06751;p=ccan diff --git a/ccan/tal/str/test/run-string.c b/ccan/tal/str/test/run-string.c index 5246a8aa..bb614ae2 100644 --- a/ccan/tal/str/test/run-string.c +++ b/ccan/tal/str/test/run-string.c @@ -36,7 +36,7 @@ int main(void) strcat(c, "x"); tal_free(c); - c = tal_asprintf(parent, "hello %s", "there"); + c = tal_fmt(parent, "hello %s", "there"); ok1(strcmp(c, "hello there") == 0); ok1(tal_parent(c) == parent); tal_free(c);