From 99acc6fb86df3ab7ec4f6b5174fce047794b8cdc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 16 Jul 2014 14:01:56 +0100 Subject: Fix truncated subtitle output. --- src/subtitle_content.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/subtitle_content.cc b/src/subtitle_content.cc index 12ed2afc..4f83d5bd 100644 --- a/src/subtitle_content.cc +++ b/src/subtitle_content.cc @@ -240,7 +240,7 @@ SubtitleContent::write_xml (boost::filesystem::path p) const } Glib::ustring const s = xml_as_string (); - fwrite (s.c_str(), 1, s.length(), f); + fwrite (s.c_str(), 1, s.bytes(), f); fclose (f); _file = p; -- cgit v1.2.3