bugs in file(1) on BTL SYS V (maybe others)

Greg Noel greg at ncr-sd.UUCP
Fri Aug 23 09:34:47 AEST 1985


In article <1005 at ariel.UUCP> rick at ariel.UUCP (R.MAUS) writes:
>BUG #1
>    Fix:
>		case SHORT:
>			val = (long)(*(short *)	p);
>			break;
>
>	to read	(something to the effect of):
>
>		case SHORT:
>			val = (long)(*(unsigned	short *) p);
>			break;
>
There is a similar cast a few lines below the one quoted that also must be
fixed.  Change the (long)(*(char *) p) into (long)(*(unsigned char *) p).
Then the problem identified in bug #3 has a chance of working.....
-- 
-- Greg Noel, NCR Rancho Bernardo    Greg at ncr-sd.UUCP or Greg at nosc.ARPA



More information about the Net.bugs mailing list