undo/redo mixer, freds vp9, next/prev kfrm, ruleof3rds
[goodguy/history.git] / cinelerra-5.1 / cinelerra / editpopup.C
index 5c8291a87033695c54628c552f5d32e40f1e1e4a..df0be8dc2cec579bb268b44956386c24c6fb6367 100644 (file)
@@ -384,9 +384,8 @@ int SnapshotMenuItem::handle_event()
        static const char *exts[] = { "png", "jpg", "tif" };
        time_t tt;     time(&tt);
        struct tm tm;  localtime_r(&tt,&tm);
-       sprintf(filename,"%s/snap_%04d%02d%02d-%02d%02d%02d.%s",
-               preferences->snapshot_path,
-               1900+tm.tm_year,1+tm.tm_mon,tm.tm_mday,
+       snprintf(filename,sizeof(filename),"%s/snap_%04d%02d%02d-%02d%02d%02d.%s",
+               preferences->snapshot_path, 1900+tm.tm_year,1+tm.tm_mon,tm.tm_mday,
                tm.tm_hour,tm.tm_min,tm.tm_sec, exts[mode]);
        int fw = edl->get_w(), fh = edl->get_h();
        int fcolor_model = edl->session->color_model;