Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase filter character limit #42

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions arcdps_uploader/Uploader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Uploader::Uploader(fs::path data_path, std::optional<fs::path> 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());
}

Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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());
}
Expand Down Expand Up @@ -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());
}
}
Expand Down
2 changes: 1 addition & 1 deletion arcdps_uploader/Uploader.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct Webhook

char name_buf[64];
char url_buf[192];
char filter_buf[128];
char filter_buf[256];
};

class Uploader
Expand Down