summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_PS_Printer.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_PS_Printer.cxx b/src/Fl_PS_Printer.cxx
index 02d632e4b..9963b1193 100644
--- a/src/Fl_PS_Printer.cxx
+++ b/src/Fl_PS_Printer.cxx
@@ -868,9 +868,10 @@ void Fl_PSfile_Device::transformed_draw(const char* str, int n, double x, double
i++;
switch (*str) {
case '(': case ')': case '\\' :
- fputs("\\" , output);
+ putc('\\' , output);
+ /* fallthrough */
default:
- fprintf(output, "%c", *str);
+ putc(*str , output);
}
str++;
}