Blame SOURCES/a2ps-mb.patch

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