>>>>> "Paulius" == Paulius Zaleckas <[email protected]> writes:
Hi, >> +#if ENABLE_FEATURE_HTTPD_CGI >> + /* tptr gets overwritten by index_page, so do deep copy >> + for /cgi-bin/index.cgi */ >> + g_query = alloca(strlen(tptr) + 1); >> + strcpy((char *)g_query, tptr); Paulius> Why not use strdup() instead? Because we then need to cleanup. We're already using alloca for urlcopy just above. -- Bye, Peter Korsgaard _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
