>>>>> "walter" == walter harms <[email protected]> writes:
Hi,
>> +#if ENABLE_FEATURE_HTTPD_GZIP
>> + if (supports_gzip) {
>> + char *gzurl;
>> +
>> + /* does <url>.gz exist? Then use it instead */
>> + gzurl = alloca(strlen(url) + strlen(".gz") + 1);
>> + sprintf(gzurl, "%s.gz", url);
walter> you could use
walter> gzurl=xasprintf(%s.gz", url);
walter> fd = open(gzurl, O_RDONLY);
walter> free(gzurl);
Ahh yes, thanks - That saves 55 bytes.
Will send updated patch.
--
Bye, Peter Korsgaard
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox