Blame SOURCES/a2ps-mb.patch

8f1c6e
diff -up a2ps-4.14/lib/psgen.c.mb a2ps-4.14/lib/psgen.c
8f1c6e
--- a2ps-4.14/lib/psgen.c.mb	2008-09-24 15:29:30.000000000 +0100
8f1c6e
+++ a2ps-4.14/lib/psgen.c	2008-09-24 15:29:30.000000000 +0100
8f1c6e
@@ -96,7 +96,8 @@ ps_escape_char (a2ps_job * job, uchar c,
8f1c6e
   /* Printable, but not 7bit clean caracters */
8f1c6e
   if (encoding_char_exists (job->encoding, job->status->face, c)
8f1c6e
       && ((0177 < c) || (c < 040))) {
8f1c6e
-    sprintf ((char *)res, "%s\\%o", res, c);
8f1c6e
+    char *p = res + strlen (res);
8f1c6e
+    sprintf (p, "\\%o", c);
8f1c6e
     return 1;
8f1c6e
   }
8f1c6e
 
8f1c6e
@@ -893,8 +894,8 @@ ps_print_char (a2ps_job * job, int c, en
8f1c6e
   if (c > 127 && encoding_get_composite_flag (job->encoding) &&
8f1c6e
       job->status->face != Symbol) {
8f1c6e
     if (mb_flag) {
8f1c6e
-        nchars = ps_escape_char (job, mb_flag, buf) + 
8f1c6e
-	         ps_escape_char (job, c, buf);
8f1c6e
+        nchars = ps_escape_char (job, mb_flag, buf);
8f1c6e
+	nchars += ps_escape_char (job, c, buf);
8f1c6e
 	job->status->wx += char_composite_WX(job, c);
8f1c6e
 	job->status->column += nchars;
8f1c6e
 	if (line_full) {