commit d5611705600814a96bc63a4aaca9a667e7192a26
parent 5287ec7c5a58a8a00776b8de4331cc4b5ea490e6
Author: Morel Bérenger <berenger.morel@neutralite.org>
Date:   Tue, 14 May 2019 01:27:45 +0200
removed useless call to strlen
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/merge.cpp b/merge.cpp
@@ -205,8 +205,7 @@ int main( void )
 			fputc( fetch ? *SEP_ENTRY : * SEP_START, stdout );
 		}
 
-		//2nd call to strlen for nothing
-		last_line.assign( buf, buf + strlen( buf ) );
+		last_line.assign( buf, buf + str_sz );
 		if( last_line.back() == *SEP_ENTRY )
 		{
 			last_line.back() = 0;