Skip to content

Commit

Permalink
fix linux proc maps parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
kin4stat committed Sep 14, 2022
1 parent f537ee8 commit 455960d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/kthook/x86_64/kthook_x86_64_detail.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ inline std::vector<map_info> parse_proc_maps() {

auto start = 0u;
auto i = 0u;
while (line[i] != ' ') { ++i; }
while (line[i] != '-') { ++i; }

std::from_chars(&line[start], &line[i], parse_result.start, 16);

Expand Down

0 comments on commit 455960d

Please sign in to comment.