diff --git a/arcdps_uploader/Uploader.cpp b/arcdps_uploader/Uploader.cpp index 2f8a43a..e513f08 100644 --- a/arcdps_uploader/Uploader.cpp +++ b/arcdps_uploader/Uploader.cpp @@ -93,7 +93,7 @@ Uploader::Uploader(fs::path data_path, std::optional custom_log_path) memcpy(wh.name_buf, wh.name.c_str(), wh.name.size()); memset(wh.url_buf, 0, 192); memcpy(wh.url_buf, wh.url.c_str(), wh.url.size()); - memset(wh.filter_buf, 0, 128); + memset(wh.filter_buf, 0, 256); memcpy(wh.filter_buf, wh.filter.c_str(), wh.filter.size()); } @@ -545,7 +545,7 @@ void Uploader::imgui_draw_options() { ImGui::PushItemWidth(ImGui::GetContentRegionAvailWidth() - ImGui::CalcTextSize("Filter").x - 1); - ImGui::InputText("Filter", wh.filter_buf, 128); + ImGui::InputText("Filter", wh.filter_buf, 256); ImGui::PopItemWidth(); if (ImGui::IsItemHovered()) { ImGui::BeginTooltip(); @@ -600,7 +600,7 @@ void Uploader::imgui_draw_options() { wh.name.size()); memset(wh.url_buf, 0, 192); memcpy(wh.url_buf, wh.url.c_str(), wh.url.size()); - memset(wh.filter_buf, 0, 128); + memset(wh.filter_buf, 0, 256); memcpy(wh.filter_buf, wh.filter.c_str(), wh.filter.size()); } @@ -629,7 +629,7 @@ void Uploader::imgui_draw_options() { memcpy(wh.name_buf, wh.name.c_str(), wh.name.size()); memset(wh.url_buf, 0, 192); memcpy(wh.url_buf, wh.url.c_str(), wh.url.size()); - memset(wh.filter_buf, 0, 128); + memset(wh.filter_buf, 0, 256); memcpy(wh.filter_buf, wh.filter.c_str(), wh.filter.size()); } } diff --git a/arcdps_uploader/Uploader.h b/arcdps_uploader/Uploader.h index f08a67a..96d974d 100644 --- a/arcdps_uploader/Uploader.h +++ b/arcdps_uploader/Uploader.h @@ -43,7 +43,7 @@ struct Webhook char name_buf[64]; char url_buf[192]; - char filter_buf[128]; + char filter_buf[256]; }; class Uploader