Revision: 41510
http://brlcad.svn.sourceforge.net/brlcad/?rev=41510&view=rev
Author: erikgreenwald
Date: 2010-12-06 15:58:19 +0000 (Mon, 06 Dec 2010)
Log Message:
-----------
report the right filename when fopen errors
Modified Paths:
--------------
brlcad/trunk/bench/pixcmp.c
Modified: brlcad/trunk/bench/pixcmp.c
===================================================================
--- brlcad/trunk/bench/pixcmp.c 2010-12-06 15:52:34 UTC (rev 41509)
+++ brlcad/trunk/bench/pixcmp.c 2010-12-06 15:58:19 UTC (rev 41510)
@@ -188,7 +188,7 @@
if (strcmp(argv[0], "-") == 0) {
f1 = stdin;
} else if ((f1 = fopen(argv[0], "rb")) == NULL) {
- perror(argv[1]);
+ perror(argv[0]);
exit(FILE_ERROR);
}
if ((argc < 2) || (strcmp(argv[1], "-") == 0)) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits