Replace asprintf with snprintf. Automatically fixes c3po-z1 build failure