Skip to content

Commit

Permalink
Fix error message when stringpatch can't open file
Browse files Browse the repository at this point in the history
"Could not open 256 for writing!" was a confusing one.
  • Loading branch information
tkelman committed Mar 2, 2014
1 parent a5b5d64 commit 23e2697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/stringpatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 23e2697

Please sign in to comment.