diff xdwgrep2.cpp @ 3:edfa39292d78

small fix.
author pyon@macmini
date Tue, 24 Oct 2017 19:29:36 +0900
parents f96c40f7aeae
children 8de5b1bd9506
line wrap: on
line diff
--- a/xdwgrep2.cpp	Mon Oct 23 20:15:22 2017 +0900
+++ b/xdwgrep2.cpp	Tue Oct 24 19:29:36 2017 +0900
@@ -139,7 +139,7 @@
 					unmatch = 1;
 					break;
 				default:
-					printf("error: illegal option '%c'.\n", c );
+					fprintf( stderr, "error: illegal option '%c'.\n", c );
 					exit( 1 );
 			}
 		}