Restore one INABIAF in 1990/westley

The other one cannot be restored or at least should not be as it floods
the screen in an unsuspecting way. If no arg is specified though, it now
will likely crash (previously because of the use of argv[1] later in the
code but now to prevent the code from flooding the screen if the number
is < 0).
This commit is contained in:
Cody Boone Ferguson committed 2024-06-06 07:29:26 -07:00
1 parent 9b4eb21d11
commit b741325af8
8 files changed
+132 -99

No files matched your search

+1 -2
View File
@@ -137,8 +137,7 @@ all: data ${TARGET}
sandwich supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
@echo "NOTE: this will very likely crash without an arg and will enter an infinite loop"
@echo "with an arg that is not a number > 0."
@echo "NOTE: this will very likely crash without an arg"
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
# alternative executable
+12
View File
@@ -5,6 +5,18 @@
```
### Bugs and (Mis)features:
The current status of this entry is:
```
STATUS: INABIAF - please **DO NOT** fix
```
For more detailed information see [1990/westley in bugs.html](../../bugs.html#1990_westley).
## To use:
``` <!---sh-->
+4
View File
@@ -403,6 +403,10 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
<!-- BEFORE: 1st line of markdown file: 1990/westley/README.md -->
<h2 id="to-build">To build:</h2>
<pre><code> make all</code></pre>
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
<p>The current status of this entry is:</p>
<pre><code> STATUS: INABIAF - please **DO NOT** fix</code></pre>
<p>For more detailed information see <a href="../../bugs.html#1990_westley">1990/westley in bugs.html</a>.</p>
<h2 id="to-use">To use:</h2>
<pre><code> ./westley &lt;number&gt;</code></pre>
<p>The number should be greater than 0.</p>
+1 -1
View File
@@ -11,7 +11,7 @@ char*lie;
dear; (char)lotte--;
if (ly < 2 || atoi(die[1])<1) exit(1);
if (atoi(die[1])<1) exit(1);
for(get= !me;; not){
1 - out & out ;lie;{