[news.software.b] lockf invocation bug on 16bit machines

dyer@spdcc.UUCP (04/11/87)

Version: news 2.11 patch 7 (and earlier?)

lockf's calling sequence is
lockf(fildes, function, size)
long size;

In expire.c, ifuncs.c and inews.c, lockf is called with a 3rd
argument of 0, not (long) 0 or 0L.  On a 16-bit machine such as XENIX 286,
this is open to failure since a word of garbage will be on the stack.
The fix is obvious.
-- 
---
Steve Dyer
dyer@harvard.harvard.edu
dyer@spdcc.COM aka {ihnp4,harvard,linus,ima,bbn,halleys}!spdcc!dyer