File: 01-empty_messages_fix

package info (click to toggle)
cowsay 3.03%2Bdfsg2-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 520 kB
  • sloc: perl: 169; sh: 68; python: 16; makefile: 10
file content (19 lines) | stat: -rw-r--r-- 512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Work-around for broken balloons with empty messages
Forwarded: no
Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165218#5 
Bug-Debian: http://bugs.debian.org/165218
Author: Jeronimo Pellegrini <pellegrini@mpcnet.com.br>

--- cowsay-3.03.orig/cowsay
+++ cowsay-3.03/cowsay
@@ -106,6 +106,10 @@ sub maxlength {
 	$l = length $i;
 	$m = $l if ($l > $m);
     }
+##  maxlength patch from Jeronimo Pellegrini (Closes: #165218)
+    if ($m == -1) {
+	$m = 0;
+    }
     return $m;
 }