Skip to content

Commit

Permalink
Correction of 6267
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Feb 5, 2024
1 parent 6ea5903 commit 8c3259f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions far/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--------------------------------------------------------------------------------
drkns 2024-02-05 00:21:12+00:00 - build 6269

1. Correction of 6267.

--------------------------------------------------------------------------------
rohitab 2024-02-04 15:53:24+11:00 - build 6268

Expand Down
2 changes: 2 additions & 0 deletions far/pathmix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ string AddEndSlash(string_view const Path)
return Result = Path;

Result.reserve(Path.size() + 1);
Result = Path;
AddEndSlash(Result);
return Result;
}
Expand Down Expand Up @@ -912,6 +913,7 @@ TEST_CASE("path.AddEndSlash")
string Str(i.Input);
AddEndSlash(Str);
REQUIRE(Str == i.Result);
REQUIRE(AddEndSlash(i.Input) == i.Result);

wchar_t Buffer[64];
REQUIRE(i.Input.size() < std::size(Buffer));
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6268
6269

0 comments on commit 8c3259f

Please sign in to comment.