projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Be a bit more careful with fwrite.
[dcpomatic.git]
/
src
/
lib
/
writer.cc
diff --git
a/src/lib/writer.cc
b/src/lib/writer.cc
index c31ae2a91661f5e42b5403f28220bc0a1e8c4936..45a74624f7da19564766b26ef2eba18da8f59b84 100644
(file)
--- a/
src/lib/writer.cc
+++ b/
src/lib/writer.cc
@@
-634,7
+634,7
@@
Writer::write_cover_sheet ()
boost::algorithm::replace_all (text, "$LENGTH", length);
-
fwrite (text.c_str(), 1, text.length(), f
);
+
checked_fwrite (text.c_str(), text.length(), f, cover
);
fclose (f);
}