bunch-o compiler bitch'n
[goodguy/history.git] / cinelerra-5.1 / cinelerra / awindowgui.C
index 039e8400f93a885f4e368a19803791c46ffb9801..f7aa770dbd368f295fa1df80e7a016fa4f05efc8 100644 (file)
@@ -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) )