aboutsummaryrefslogtreecommitdiff
path: root/lib/pp_control.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pp_control.ml')
-rw-r--r--lib/pp_control.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pp_control.ml b/lib/pp_control.ml
index 890ffe0a18..ab8dc0798c 100644
--- a/lib/pp_control.ml
+++ b/lib/pp_control.ml
@@ -58,7 +58,7 @@ let with_fp chan out_function flush_function =
(* Output on a channel ch *)
let with_output_to ch =
- let ft = with_fp ch (output ch) (fun () -> flush ch) in
+ let ft = with_fp ch (output_substring ch) (fun () -> flush ch) in
set_gp ft deep_gp;
ft