From a638245a8f0d7b89ccf145e67539a6d9bceb4329 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sun, 4 May 2014 11:55:36 +0100 Subject: [PATCH] Makefile: Fix one-based indexing properly. Organization: Straylight/Edgeware From: Mark Wooding --- Makefile | 2 +- dnserr.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a9f5e61..9e4d709 100644 --- 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 diff --git a/dnserr.in b/dnserr.in index 621aeb6..290b9f0 100644 --- 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 -- [mdw]