diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 20:27:53 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 20:27:53 +0100 |
| commit | e49f9f584612700f322916d03b6bcc91ddb136ec (patch) | |
| tree | 1859299fc87eb902516ebc5dbb2320f3d54ecd18 /src/main.cpp | |
| parent | 7e0a7cea406d4dd4733dfa834ac7c41ce848e658 (diff) | |
fix use after free
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 16b46d1..687bbab 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -117,9 +117,9 @@ static int _ts_create_menu() { } void ts_init() { - snprintf(path_buffer, MAX_INPUT_LENGTH, "%s", "C:\\Users\\aldri\\Desktop\\Vault\\Projects\\test"); + snprintf(path_buffer, MAX_INPUT_LENGTH, "%s", "C:\\Users\\aldri\\Desktop\\Vault\\Projects\\allegro5\\build\\tests"); snprintf(filter_buffer, MAX_INPUT_LENGTH, "%s", "*.h"); - snprintf(query_buffer, MAX_INPUT_LENGTH, "%s", "あいうえお"); + snprintf(query_buffer, MAX_INPUT_LENGTH, "%s", "test"); } int _tb_query_input_cb(ImGuiInputTextCallbackData* data) { @@ -236,9 +236,9 @@ void ts_create_gui(int window_w, int window_h) { ImGui::TableNextColumn(); ImGui::Text("%.*s", file->word_match_offset, file->line_info); - ImGui::SameLine(); + ImGui::SameLine(0.0f, 0.0f); ImGui::TextColored({255,0,0,255}, "%.*s", file->word_match_length, file->line_info + file->word_match_offset); - ImGui::SameLine(); + ImGui::SameLine(0.0f, 0.0f); ImGui::TextUnformatted(file->line_info + file->word_match_offset + file->word_match_length); ImGui::TableNextColumn(); |
