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