Be a bit more careful with fwrite.
[dcpomatic.git] / src / wx / swaroop_controls.cc
index 36aac7cff222e323c6bf1ea433fda2ec1960973c..d6ab5c39daa0de4322b5c6e6b3a0bdc98299eba4 100644 (file)
@@ -158,7 +158,7 @@ SwaroopControls::viewer_position_changed ()
                        + " " + dcp::raw_convert<string>(_selected_playlist_position)
                        + " " + dcp::raw_convert<string>(_viewer->position().get());
 
-               fwrite (p.c_str(), p.length(), 1, f);
+               checked_fwrite (p.c_str(), p.length(), f, Config::path("position"));
                fclose (f);
        }
 }