compress.c & GNU C 1.25

James Van Artsdalen james at bigtex.uucp
Tue Aug 9 15:14:46 AEST 1988


compress.c does not work as is with GNU C.  I don't know if this is a
bug or a mysterious feature of ANSI C.  The problem is that string
constants have the high order bit cleared.  To get compress working
again, make the following change near line 126:

< char_type magic_header[] = { "\037\235" };	/* 1F 9D */
---
> char_type magic_header[] = { 0x1f, 0x9d, 0x00 };	/* 1F 9D */
-- 
James R. Van Artsdalen    ...!uunet!utastro!bigtex!james     "Live Free or Die"
Home: 512-346-2444 Work: 328-0282; 110 Wild Basin Rd. Ste #230, Austin TX 78746



More information about the Comp.unix.microport mailing list