Use asprintf.

Avoid possible errors.