Makefile: Fix one-based indexing properly.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 4 May 2014 10:55:36 +0000 (11:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 4 May 2014 10:55:36 +0000 (11:55 +0100)
Makefile
dnserr.in

index a9f5e61..9e4d709 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -75,7 +75,7 @@ dnserr.zone.sig: dnserr.zone.sigold dnserr.zone.signew
                  if (c != tolower(c)) { c = tolower(c); break; } \
                  else if (c != toupper(c)) { c = toupper(c); break; } \
                } \
-               $$13 = substr(s, 1, i) c substr(s, i + 2); \
+               $$13 = substr(s, 1, i - 1) c substr(s, i + 1); \
             } \
             { print; }' \
                dnserr.zone.signew >$@.new
index 621aeb6..290b9f0 100644 (file)
--- a/dnserr.in
+++ b/dnserr.in
@@ -9,7 +9,7 @@ $TTL 14400
 
 @                      IN      SOA     MASTER. (
                                                CONTACT.
-                                            2014050408      ;serial
+                                            2014050409      ;serial
                                                  86400      ;refresh
                                                   3600      ;retry
                                                1209600      ;expire