]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4623: Don't dump Midi data to screen on write error
authorDavid Kastrup <dak@gnu.org>
Sun, 27 Sep 2015 10:15:33 +0000 (12:15 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 2 Oct 2015 07:44:22 +0000 (09:44 +0200)
lily/midi-stream.cc

index 1c7153a1e39098699f06eacb738b549434caaae9..d0f853109468727e0d038adeb1fb2a5194f4ad36 100644 (file)
@@ -51,7 +51,7 @@ Midi_stream::write (const string &str)
   size_t written = fwrite (str.data (), sz, n, out_file_);
 
   if (written != sz * n)
-    warning (_f ("cannot write to file: `%s'", str.data ()));
+    warning (_f ("cannot write to file: `%s'", file_name_string_.c_str ()));
 }
 
 void