Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!mips!apple!rutgers!mcnc!ecsvax.uncecs.edu!jrw From: jrw@uncecs.edu (James R. White) Newsgroups: comp.os.minix Subject: bug with Turbo C and build.c Message-ID: <1990Mar22.032103.17312@uncecs.edu> Date: 22 Mar 90 03:21:03 GMT Organization: UNC Educational Computing Service Lines: 6 In tools/build.c line 199: if (lseek(fd, (long) -sizeof click_buf, 1) < 0) causes problems using Turbo C. I replaced it with: if (lseek(fd, -(long) sizeof click_buf, 1) < 0) The reason for the problem is that in TC sizeof gives an unsigned. Thus, sizeof click_buf is (unsigned)4, and -(unsigned)4 is 65532.