chiark / gitweb /
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 a9f5e61fe6782f5a8d45e028cdcb970515b969d8..9e4d709431782305824f89783cab3f5a7d58d1e9 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 621aeb6cbf8e6bf412a4e0930c6c5d676523e240..290b9f0d906c2e9537869e0353a4bc5d463ce16e 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