chiark / gitweb /
Makefile: Fix one-based indexing properly.
[dnserr] / Makefile
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