Fix 1993/plummer - check args

This commit is contained in:
Cody Boone Ferguson committed 2023-10-30 05:45:19 -07:00
1 parent d629239eef
commit 641ddafe2a
5 files changed
+7 -33

No files matched your search

-16
View File
@@ -13,17 +13,6 @@ make all
```
### Bugs and (Mis)features
The current status of this entry is:
```
STATUS: known bug - please help us fix
```
For more detailed information see [1993 plummer in bugs.md](/bugs.md#1993-plummer).
## To use:
```sh
@@ -69,11 +58,6 @@ make clobber CDEFINE="-DZ=50" alt
./plummer.alt xyzzyzzyx 5555
```
### INABIAF - it's not a bug it's a feature :-)
This entry will very likely crash or do something else if you run it without
enough args.
## Judges' remarks:
+1 -1
View File
@@ -1 +1 @@
char*_,*O;main(S,l)char**l;{*(O=*(l+++S-1)-1)=13,*l[1]=0;for(;;)for(printf(*l),_=O-1,usleep(Z);_>=*l&&++*_>(S+*O+S)*S;*_--=(S+*O)*S);}
char*_,*O;main(S,l)char**l;{if(S<3)exit(1);*(O=*(l+++S-1)-1)=13,*l[1]=0;for(;;)for(printf(*l),_=O-1,usleep(Z);_>=*l&&++*_>(S+*O+S)*S;*_--=(S+*O)*S);}
+1 -1
View File
@@ -1 +1 @@
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);}
char*_,*O;main(S,l)char**l;{if(S<3)exit(1);*(O=*(l+++S-1)-1)=13,*l[1]=0;for(;;)for(printf(*l),_=O-1;_>=*l&&++*_>(S+*O+S)*S;*_--=(S+*O)*S);}