Path: utzoo!utgpu!cs.utexas.edu!uunet!mcsun!ukc!warwick!estdwha From: estdwha@warwick.ac.uk (CrisP) Newsgroups: alt.hackers Subject: Re: Something fun Message-ID: Date: 6 Mar 91 22:59:15 GMT References: <4669@eastapps.East.Sun.COM> Sender: news@warwick.ac.uk (Network news) Organization: Computing Services, Warwick University, UK Lines: 36 Approved: crisp Nntp-Posting-Host: lily In article <4669@eastapps.East.Sun.COM> gaudreau@juggler.East.Sun.COM (Joe Gaudreau (Spaced for Rent)) writes: >/* >cc -g -o weird weird.c >*/ > >main(argc, argv) >int argc; >char **argv; >{ > int n; > char *p, *x; > > for (x = *argv; *argv; argv++) { > for (p = *argv; *p; p++) { ^^^^ Shouldn't this be x? > *p = ' '; > } > } > strcpy(x, "x"); > > while (1); > >} /*weird*/ > > >Hack on dudes, > >Joe >-=- -- -------------------------------------------------------------------- crisp@uk.ac.warwick.cs | I didn't do it. Nobody saw me do it. estdwha@uk.ac.warwick.cu | You can't prove anything. - Bart Simpson. --------------------------------------------------------------------