hi, guys,
since I need to re-write the url inside with some suffix, so in function
parseHttpRequest(...)
/* URL may be rewritten later, so make extra room */
url_sz = strlen(url) + Config.appendDomainLen + 5;
http->uri = xcalloc(url_sz, 1);
strcpy(http->uri, url);
I add an additional 10.
However, sometimes the system can catch Segment Fault, for invaild memory
refernce when it tries to free(http->uri).
I guess the problem is from this, but not sure. Anyone has any idea on
this?
thanks in advance.
-- SongqingReceived on Thu Jul 31 2003 - 23:31:06 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:18 MST