diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-16 14:01:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-16 14:01:56 +0100 |
| commit | 99acc6fb86df3ab7ec4f6b5174fce047794b8cdc (patch) | |
| tree | de05866211582a56242e8dcbfc53e316f1ec322f /src/subtitle_content.cc | |
| parent | c3ee26fb99346986340e590f8605ae99564a4934 (diff) | |
Fix truncated subtitle output.
Diffstat (limited to 'src/subtitle_content.cc')
| -rw-r--r-- | src/subtitle_content.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
