bunch-o compiler bitch'n
[goodguy/history.git] / cinelerra-5.1 / plugins / motion51 / motion51.C
index 402a5a00eecf22869a529a05e123f78e37f66760..483c6e5fc93419d63542ae0ad6b86eafbd4dbaad 100644 (file)
@@ -686,7 +686,7 @@ int Motion51Main::put_cache_line(const char *line)
        if( key == active_key ) return 1;
        if( !active_fp ) {
                close_cache_file();
-               sprintf(cache_file, "%s.bak", config.tracking_file);
+               snprintf(cache_file, sizeof(cache_file), "%s.bak", config.tracking_file);
                ::rename(config.tracking_file, cache_file);
                if( !(active_fp = fopen(config.tracking_file, "w")) ) {
                        perror(config.tracking_file);