Skip to content

Commit

Permalink
and again
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Oct 4, 2017
1 parent 0258dda commit d460965
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions far/changelog
@@ -1,3 +1,7 @@
drkns 04.10.2017 23:47:28 +0100 - build 5061

1. И ещё.

drkns 02.10.2017 16:09:16 +0100 - build 5060

1. И ещё.
Expand Down
5 changes: 3 additions & 2 deletions far/copy.cpp
Expand Up @@ -239,8 +239,9 @@ static void GenerateName(string &strName, const string& Path)
strName = strTmp + PointToName(strName);
}

const auto Ext = PointToExt(strName);
size_t NameLength=strName.size() - Ext.size();
// The source string will be altered below so the view must be copied
const auto Ext = make_string(PointToExt(strName));
const auto NameLength = strName.size() - Ext.size();

// file (2).ext, file (3).ext and so on
for (int i = 2; os::fs::exists(strName); ++i)
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,5060)m4_dnl
m4_define(BUILD,5061)m4_dnl

0 comments on commit d460965

Please sign in to comment.