opengl dot() fix, add file dates, sort file name/time, fix icon image lookup, sync...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / editpopup.C
index fc1da9d09c7acf518e5cb0ca6e5be287ee6a5c13..df0be8dc2cec579bb268b44956386c24c6fb6367 100644 (file)
@@ -384,8 +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,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;