Fix a wayward assert.

This commit is contained in:
Andy McFadden 2006-02-19 01:17:20 +00:00
parent 376b8c93d8
commit 038843ddb2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006/02/18 fadden
- Correct a wayward assert. (Changing the filetype of a file from an
HFS disk, which has zero-length data fork, falsely triggered the
assert.)
2005/09/17 ***** v2.1.0 shipped *****
2005/09/17 fadden

View File

@ -1412,7 +1412,7 @@ Nu_CopyFileSection(NuArchive* pArchive, FILE* dstFp, FILE* srcFp, long length)
Assert(pArchive != nil);
Assert(dstFp != nil);
Assert(srcFp != nil);
Assert(length);
Assert(length >= 0); /* can be == 0, e.g. empty data fork from HFS */
/* nice big buffer, for speed... could use getc/putc for simplicity */
err = Nu_AllocCompressionBufferIFN(pArchive);