[comp.sources.bugs] bug in unzipbsd + fix

phillips@faculty.cs.ubc.ca (George Phillips) (11/13/89)

Unzipbsd (a pkzip unzipper) assumes a particular implementation of memcpy
which made it fail on our Sun 3's.  The cheap fix is to define a version
of memcpy that keeps unzipbsd happy.  The real fix should get rid of the
memcpy assumption.  I put the following bit of code at the start of 
unzipbsd.c and it works now.

memcpy(s1, s2, n)
register char* s1;
register char* s2;
register int n;
{
	while (n-- > 0)
		*s1++ = *s2++;
}

I haven't been able to report the bug to the author, so if he's listening...

--
George Phillips phillips@cs.ubc.ca {alberta,uw-beaver,uunet}!ubc-cs!phillips