Fix warnings.

This commit is contained in:
Zachary Hall 2023-07-21 09:56:13 -07:00
parent 4f0f1dd84b
commit 8ab46669de
2 changed files with 31 additions and 31 deletions

View file

@ -277,7 +277,7 @@ bool Theme::ShowEditor(bool* open, Theme* &theme, ImGuiID dockid, int window_wid
if (themePath.stem().string().starts_with(filter)) {
const bool is_selected = strcmp(themePath.stem().generic_string().c_str(), selectedThemeName) == 0;
if (ImGui::Selectable(themePath.stem().generic_string().c_str(), is_selected)) {
strncpy(selectedThemeName, themePath.stem().generic_string().c_str(), 1024);
strncpy(selectedThemeName, themePath.stem().generic_string().c_str(), 1023);
}
if (is_selected) {
ImGui::SetItemDefaultFocus();