fix month in snap filename timestamp
authorGood Guy <[email protected]>
Sat, 21 Oct 2017 23:53:14 +0000 (17:53 -0600)
committerGood Guy <[email protected]>
Sat, 21 Oct 2017 23:53:14 +0000 (17:53 -0600)
cinelerra-5.1/cinelerra/editpopup.C

index fc1da9d09c7acf518e5cb0ca6e5be287ee6a5c13..5c8291a87033695c54628c552f5d32e40f1e1e4a 100644 (file)
@@ -385,7 +385,8 @@ int SnapshotMenuItem::handle_event()
        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,
+               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;