Fix bugs in 1990/westley

If no arg is specified it crashed. If arg was not a number > 0 it
entered an infinite loop. Both have been fixed, exiting 1.

These checks were NOT done in the alt code as that's a copy of the
original code.
This commit is contained in:
Cody Boone Ferguson committed 2023-10-30 06:59:39 -07:00
1 parent 92cb3c43db
commit 1df3b50b23
4 files changed
+8 -32

No files matched your search

-13
View File
@@ -634,19 +634,6 @@ will enter an infinite loop, printing 0 over and over again; another condition
where this occurred was fixed but this one should not be fixed. Thank you.
## 1990 westley
### STATUS: known bug - please help us fix
### Source code: [1990/westley/westley.c](1990/westley/westley.c)
### Information: [1990/westley/README.md](1990/westley/README.md)
This entry will very likely crash or do something strange without an arg.
This entry will also enter an infinite loop if input is not a number > 0.
If you want to try and fix this (mis)feature, you are welcome to try.
# 1991