summaryrefslogtreecommitdiffstats
path: root/split.cc
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 11:50:02 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 11:50:02 +0000
commit018cead199f4ee24f0286cbd033355eae7f8fdae (patch)
treef0a935bac9c716aa3eed352755efa62e1b2b8206 /split.cc
parentAdding debian version 1.16-2. (diff)
downloadlziprecover-018cead199f4ee24f0286cbd033355eae7f8fdae.tar.xz
lziprecover-018cead199f4ee24f0286cbd033355eae7f8fdae.zip
Merging upstream version 1.17~pre1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r--split.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/split.cc b/split.cc
index 91b6263..7b3f9fd 100644
--- a/split.cc
+++ b/split.cc
@@ -43,9 +43,8 @@ void first_filename( const std::string & input_filename,
output_filename = input_filename;
int b = output_filename.size();
while( b > 0 && output_filename[b-1] != '/' ) --b;
- output_filename.insert( b, 1, '1' );
- if( max_digits > 1 ) output_filename.insert( b, max_digits - 1, '0' );
- output_filename.insert( b, "rec" );
+ output_filename.insert( b, "rec1" );
+ if( max_digits > 1 ) output_filename.insert( b + 3, max_digits - 1, '0' );
}