Skip to content

Commit

Permalink
Merge pull request #42 from kosmirion-epos/master
Browse files Browse the repository at this point in the history
Increase filter character limit
  • Loading branch information
nbarrios authored Dec 27, 2023
2 parents bbfe1b1 + a4abde9 commit f9384b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit f9384b5

Please sign in to comment.