From 5210b6a30b5b9a46119e9ac505a34aec9fd6312a Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 11 Nov 2023 12:34:02 -0800 Subject: [PATCH] Fix a fix in 1998/schnitzi In particular arg check was invalid. This was one of the programs that was thought it should be checked as it's such a beautiful program. --- 1998/schnitzi/schnitzi.c | 2 +- thanks-for-fixes.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/1998/schnitzi/schnitzi.c b/1998/schnitzi/schnitzi.c index 3ecc7bc1f..c62e9d280 100644 --- a/1998/schnitzi/schnitzi.c +++ b/1998/schnitzi/schnitzi.c @@ -53,7 +53,7 @@ void d (){ O=g; *r=y[k]; _=r; k=k+1; m=k0&&atoi(V[1])<27)||(exit(1),1)))); +((V[1]&&((atoi(V[1])>0&&atoi(V[1])<27))||(exit(1),1))); q=0; O=r_; _d=V; x: (O)(); goto x; } diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 9c67391f9..acef698d6 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -2067,7 +2067,7 @@ doesn't crash. At this point since the author stated it has no `while`, doing: ```c -((V[1]&&((atoi(V[1])>0&&atoi(V[1])<27)||(exit(1),1)))); +((V[1]&&((atoi(V[1])>0&&atoi(V[1])<27))||(exit(1),1))); ``` Cody also added the [try.sh](1998/schnitzi/try.sh) script to help users try the