X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fawindowgui.C;h=f7aa770dbd368f295fa1df80e7a016fa4f05efc8;hb=58d99c74e65066486dbebf7e1cb3087e7de1c92b;hp=039e8400f93a885f4e368a19803791c46ffb9801;hpb=95683646dce10ad3f6a8c8c9c9225c69f4841ec5;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/awindowgui.C b/cinelerra-5.1/cinelerra/awindowgui.C index 039e8400..f7aa770d 100644 --- a/cinelerra-5.1/cinelerra/awindowgui.C +++ b/cinelerra-5.1/cinelerra/awindowgui.C @@ -826,7 +826,8 @@ void AWindowRemovePlugin::handle_close_event(int result) mwindow->plugindb->remove(plugin); remove(plugin_path); char index_path[BCTEXTLEN]; - sprintf(index_path, "%s/%s", mwindow->preferences->plugin_dir, PLUGIN_FILE); + snprintf(index_path, sizeof(index_path), "%s/%s", + mwindow->preferences->plugin_dir, PLUGIN_FILE); remove(index_path); char png_path[BCTEXTLEN]; if( plugin->get_theme_png_path(png_path, mwindow->preferences->theme) )