Help with this code snippet please

"Tom Wood" <[email protected]>
Newsgroups gmane.network.tux
Message-ID <[email protected]>
For some reason the gif image review.gif will get blurred or mangled
when it is sent to the clients browser using this code.
Can someone tell me what I'm doing wrong?


strcpy(req->objectname + strlen(req->objectname), "CHREVIEW.HTML");
req->objectlen = strlen(req->objectname);
if(tux(TUX_ACTION_GET_OBJECT, req) > -1 && !req->error)
{
	strcpy(req->objectname, "REVIEW.GIF");
	req->objectlen = strlen(req->objectname);
	req->event = 1;
	ret = tux(TUX_ACTION_GET_OBJECT, req);
	if(ret < 0 || req->error)
	{
		return tux(TUX_ACTION_FINISH_CLOSE_REQ, req);
	}
	else
	{
		return ret;
	}
}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.