--- ray/src/ot/obj2mesh.c 2003/06/05 19:29:34 2.5 +++ ray/src/ot/obj2mesh.c 2003/07/14 05:00:45 2.7 @@ -1,11 +1,12 @@ #ifndef lint -static const char RCSid[] = "$Id: obj2mesh.c,v 2.5 2003/06/05 19:29:34 schorsch Exp $"; +static const char RCSid[] = "$Id: obj2mesh.c,v 2.7 2003/07/14 05:00:45 greg Exp $"; #endif /* * Main program to compile a Wavefront .OBJ file into a Radiance mesh */ #include "copyright.h" +#include "platform.h" #include "standard.h" #include "cvmesh.h" #include "otypes.h" @@ -57,6 +58,9 @@ char *argv[]; error(USER, errmsg); break; } + + if (i < argc-2) + error(USER, "too many file arguments"); /* initialize mesh */ cvinit(i==argc-2 ? argv[i+1] : ""); /* load material input */