diff options
author | B. Watson <urchlay@slackware.uk> | 2023-05-19 02:30:37 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2023-05-19 02:30:37 -0400 |
commit | 7bb8997041b0cc3996e03b48e36e132cdc4a434e (patch) | |
tree | 5b771b1e96266fefd97fd50929fde09f34924275 /sbolint | |
parent | 802c66f690d9b8387343cdd5f7c350363901230f (diff) | |
download | sbo-maintainer-tools-7bb8997041b0cc3996e03b48e36e132cdc4a434e.tar.gz |
sbolint: fix off-by-one bug in check_slackdesc.
Diffstat (limited to 'sbolint')
-rwxr-xr-x | sbolint | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); } |