]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-stream.cc
Imported Debian patch 2.12.3-1
[lilypond.git] / lily / midi-stream.cc
index bcaefe7c181fc461fde48f8a6b9b744c865321cf..ca7e24141c14a0d1615a145c4858dd652e2671e6 100644 (file)
@@ -3,11 +3,11 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2007 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1997--2009 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include "midi-stream.hh"
-
+#include <cstring>
 #include <cerrno>
 using namespace std;
 
@@ -41,7 +41,7 @@ Midi_stream::write (string str)
   size_t written = fwrite (str.data (), sz, n, out_file_);
 
   if (written != sz * n)
-    warning (_ ("cannot write to file: `%s'"));
+    warning (_f ("cannot write to file: `%s'", str.data ()));
 }
 
 void