Permalink
Browse files

Fix error message when stringpatch can't open file

"Could not open 256 for writing!" was a confusing one.
  • Loading branch information...
1 parent a5b5d64 commit 23e2697bc2d35a66e1cdd202fa9c48bd024cd44c @tkelman tkelman committed Mar 2, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 contrib/stringpatch.c
View
2 contrib/stringpatch.c
@@ -15,7 +15,7 @@ int main( int argc, char ** argv ) {
FILE * f = fopen( argv[4], "r+" );
if( !f ) {
- printf( "ERROR: Could not open %s for writing!\n", argv[3] );
+ printf( "ERROR: Could not open %s for writing!\n", argv[4] );
return -1;
}

0 comments on commit 23e2697

Please sign in to comment.