Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 23e2697

Browse files
committed
Fix error message when stringpatch can't open file
"Could not open 256 for writing!" was a confusing one.
1 parent a5b5d64 commit 23e2697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/stringpatch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int main( int argc, char ** argv ) {
1515

1616
FILE * f = fopen( argv[4], "r+" );
1717
if( !f ) {
18-
printf( "ERROR: Could not open %s for writing!\n", argv[3] );
18+
printf( "ERROR: Could not open %s for writing!\n", argv[4] );
1919
return -1;
2020
}
2121

0 commit comments

Comments
 (0)