Skip to content

Commit

Permalink
Resize instead of reserve
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <[email protected]>
  • Loading branch information
jjerphan committed Jan 30, 2025
1 parent 9ab42d9 commit a7062c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmamba/src/core/util_os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ namespace mamba
}

new_size *= 2;
buffer.reserve(new_size);
buffer.resize(new_size);
}
buffer.resize(size);
return fs::absolute(buffer);
Expand Down

0 comments on commit a7062c2

Please sign in to comment.