projects
/
wumpus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baf8efe
)
Fix bug spotted by cppcheck.
author
Eric S. Raymond
<esr@thyrsus.com>
Sat, 4 Apr 2015 10:37:14 +0000
(06:37 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sat, 4 Apr 2015 10:37:14 +0000
(06:37 -0400)
superhack.c
patch
|
blob
|
history
diff --git
a/superhack.c
b/superhack.c
index eacb8eb2d9befc0e91a9c3d7663e5a1ca92dfc0f..f4f616e79c980464072f99942efb8e928619977b 100644
(file)
--- a/
superhack.c
+++ b/
superhack.c
@@
-231,7
+231,7
@@
void throw()
}
for (k = 0; k < j9; k++)
- if (path[k] == path[k - 2])
+ if (
k >= 2 &&
path[k] == path[k - 2])
{
(void) puts("Pies can't fly that crookedly --- try again.");
return;