diff --git a/1993/plummer/Makefile b/1993/plummer/Makefile index d2d7073e1..c7f3f4a75 100644 --- a/1993/plummer/Makefile +++ b/1993/plummer/Makefile @@ -128,6 +128,7 @@ all: data ${TARGET} supernova deep_magic magic charon pluto ${PROG}: ${PROG}.c + @echo "NOTE: this program will crash with not enough args." ${CC} ${CFLAGS} $< -o $@ ${LIBS} # alternative executable diff --git a/1993/plummer/README.md b/1993/plummer/README.md index 9dc3b64fb..3da60d124 100644 --- a/1993/plummer/README.md +++ b/1993/plummer/README.md @@ -18,9 +18,8 @@ where: number is a number (try 21701) arg is any argument -[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) added a check in the -code so that it will not segfault if not enough args are specified. Thank you -Cody! + +NOTE: this entry will crash without enough args. ## Judges' comments: diff --git a/1993/plummer/plummer.c b/1993/plummer/plummer.c index af348c6f8..d0c61daa2 100644 --- a/1993/plummer/plummer.c +++ b/1993/plummer/plummer.c @@ -1 +1 @@ -char*_,*O;main(S,l)char**l;{if(S>2){*(O=*(l+++S-1)-1)=13,*l[1]=0;for(;;)for(printf(*l),_=O-1;_>=*l&&++*_>(S+*O+S)*S;*_--=(S+*O)*S);}} +char*_,*O;main(S,l)char**l;{*(O=*(l+++S-1)-1)=13,*l[1]=0;for(;;)for(printf(*l),_=O-1;_>=*l&&++*_>(S+*O+S)*S;*_--=(S+*O)*S);}