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