aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-05-19 02:30:37 -0400
committerB. Watson <urchlay@slackware.uk>2023-05-19 02:30:37 -0400
commit7bb8997041b0cc3996e03b48e36e132cdc4a434e (patch)
tree5b771b1e96266fefd97fd50929fde09f34924275 /sbolint
parent802c66f690d9b8387343cdd5f7c350363901230f (diff)
downloadsbo-maintainer-tools-7bb8997041b0cc3996e03b48e36e132cdc4a434e.tar.gz
sbolint: fix off-by-one bug in check_slackdesc.
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbolint b/sbolint
index 5e574fc..9e16dea 100755
--- a/sbolint
+++ b/sbolint
@@ -867,8 +867,8 @@ sub check_slackdesc {
log_error("slack-desc:$lineno: wrong prefix '$prefix', should be '$buildname:'");
} elsif($text =~ /^\s+$/) {
log_error("slack-desc:$lineno: trailing whitespace after colon, on otherwise-blank line");
- } elsif(length($text) > 72) {
- log_error("slack-desc:$lineno: text too long, %d characters, should be <= 72", length($text));
+ } elsif(length($text) > 71) {
+ log_error("slack-desc:$lineno: text too long, %d characters, should be <= 71", length($text));
} elsif(length($text) && $text !~ /^ /) {
log_error("slack-desc:$lineno: missing whitespace after colon, on non-blank line");
}