diff --git a/2001/ollinger/ollinger.c b/2001/ollinger/ollinger.c index 318773a22..29d45a4d0 100644 --- a/2001/ollinger/ollinger.c +++ b/2001/ollinger/ollinger.c @@ -11,6 +11,7 @@ char e[]="**3H[`mr25\ int main(int j,char *k[]) { int a,b,c,d,g,h,i=19; + if (j<2)exit(1); printf(" "); for(g=0[f=(char *)calloc(80+(h=atoi(1[k])),1)]=1; g<=h; g++) { if ((g>30)&&(f[i-2]+f[i-1]!=0)) i++; diff --git a/bugs.md b/bugs.md index dc2b412dc..750254b9d 100644 --- a/bugs.md +++ b/bugs.md @@ -1333,14 +1333,6 @@ set. In other words both have to be ASCII or EBCDIC - not one of each. ## 2001 ollinger -### STATUS: known bug - please help us fix -### Source code: [2001/ollinger/ollinger.c](2001/ollinger/ollinger.c) -### Information: [2001/ollinger/README.md](2001/ollinger/README.md0 - -This program will very likely crash or do something else without an arg. - -If you want to try and fix this (mis)feature, you are welcome to try. - ### STATUS: INABIAF - please **DO NOT** fix ### Source code: [2001/schweikh/schweikh.c](2001/schweikh/schweikh.c) diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 3d4252517..00be616fe 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1830,6 +1830,10 @@ the paddles move even when holding down the movement keys. Cody also provided an alternate version which lets you use the arrow keys on your keyboard instead of the more awkward '`,`' and '`.`'. +## [2001/ollinger](2001/ollinger/ollinger.c) ([README.md](2001/ollinger/README.md)) + +Cody fixed to not crash if not enough args, exiting 1 instead. + ## [2001/schweikh](2001/schweikh/schweikh.c) ([README.md](2001/schweikh/README.md])) Cody fixed this to not crash if not enough args as this was not documented by