aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-10-19 10:33:28 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-10-19 10:39:23 +1300
commit0e6da5d257ffdd78720678472d93ce508520ff3d (patch)
tree88b20f602f55cb89d26f406f7d1b32634b98d5da /games
parentAdd drakon(6df) (diff)
downloaddotfiles-0e6da5d257ffdd78720678472d93ce508520ff3d.tar.gz
dotfiles-0e6da5d257ffdd78720678472d93ce508520ff3d.zip
Initialise var in drakon(6df)
Prevent runaway strings
Diffstat (limited to 'games')
-rw-r--r--games/drakon.awk1
1 files changed, 1 insertions, 0 deletions
diff --git a/games/drakon.awk b/games/drakon.awk
index 5d73f74d..65cf748e 100644
--- a/games/drakon.awk
+++ b/games/drakon.awk
@@ -1,6 +1,7 @@
# TyPe lIkE AnDoR DrAkOn fRoM AnCiEnT DoMaInS Of mYsTeRy
# <http://www.adomgb.info/adomgb-4.html>
{
+ s = ""
for (i = 1; i <= length($0); i++) {
c = substr($0, i, 1)
if (i % 2) {