Deleted code executed stren() to find out the length. Unless libcurl documents that LIBCURL_VERSION is a define, sizeof() is not safe.