5b0204
--- a2ps-4.13/lib/psgen.c.mb	2006-10-25 16:16:44.000000000 +0100
5b0204
+++ a2ps-4.13/lib/psgen.c	2006-10-25 16:18:54.000000000 +0100
5b0204
@@ -97,7 +97,8 @@
5b0204
   fprintf(stderr,"%d\n",job->status->face);
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
 
5b0204
@@ -894,8 +895,8 @@
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) {