Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.sources.wanted Subject: Gnu_helloworld.c Release 1.1 (Gamma test) Message-ID: <3308@solo10.cs.vu.nl> Date: 20 Sep 89 15:40:09 GMT References: <2154@munnari.oz.au> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 10 emery@coriolis.ecr.mu.oz (Samuel Emery) writes: \... write(1, gobbledegook, sizeof(gobbledegook)); I can live with the `preamble', but that final '\0' was just too much... :-) Change the write() to: write(1, gobbledegook, sizeof(gobbledegook) - 1); -- creat(2) shouldn't have been create(2): |Maarten Litmaath @ VU Amsterdam: it shouldn't have existed at all. |maart@cs.vu.nl, mcvax!botter!maart