SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: > jOE- just one question, do you want me to put in the strncpy as well as > snprintf. i.e as below : > sprintf (loc, strlen(location), "%s", location);//note the comma before"%s" > strncpy(loc,location,strlen(location)); > please confirm >
No, just replace those lines you sent us with what is here : char *loc; loc = (char*)apr_palloc(r->pool,strlen(location)); strncpy(loc,location,strlen(location)); apr_table_setn (r->headers_out, "Location", loc); r->status = HTTP_TEMPORARY_REDIRECT; return (HTTP_TEMPORARY_REDIRECT); Joe -- Joseph Lewis <http://sharktooth.org/> "Divide the fire, and you will sooner put it out." - Publius Syrus
