Revision: 55559
http://sourceforge.net/p/brlcad/code/55559
Author: carlmoore
Date: 2013-05-23 20:06:44 +0000 (Thu, 23 May 2013)
Log Message:
-----------
supply 'bad argument' message for arguments other than the prescribed ones
Modified Paths:
--------------
brlcad/trunk/src/sig/bw-d.c
Modified: brlcad/trunk/src/sig/bw-d.c
===================================================================
--- brlcad/trunk/src/sig/bw-d.c 2013-05-23 18:37:17 UTC (rev 55558)
+++ brlcad/trunk/src/sig/bw-d.c 2013-05-23 20:06:44 UTC (rev 55559)
@@ -65,8 +65,10 @@
argc--;
}
- if ( argc > 1 || ZERO(scale) || isatty(fileno(stdin)) )
+ if ( argc > 1 || ZERO(scale) || isatty(fileno(stdin)) ) {
+ fprintf(stderr,"bad argument\n");
printusage();
+ }
while ( (num = fread( &ibuf[0], sizeof( ibuf[0] ), 512, stdin)) > 0 ) {
if ( EQUAL(scale, 1.0) ) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits