ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rpiece.c
(Generate patch)

Comparing ray/src/util/rpiece.c (file contents):
Revision 2.44 by greg, Tue Jun 8 19:48:31 2004 UTC vs.
Revision 2.47 by greg, Wed Aug 22 18:46:36 2007 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9   #include <stdio.h>
10   #include <signal.h>
11   #include <sys/types.h>
12 < #include <sys/wait.h>
12 > #ifndef NON_POSIX /* XXX need abstraction for process management */
13 > #include <sys/wait.h>
14 > #endif
15  
16   #include "platform.h"
17   #include "standard.h"
# Line 246 | Line 248 | init(                  /* set up output file and start rpict */
248                                          /* compute piece size */
249          hres /= hmult;
250          vres /= vmult;
251 +        if (hres <= 0 || vres <= 0) {
252 +                fprintf(stderr, "%s: illegal resolution/subdivision\n", progname);
253 +                exit(1);
254 +        }
255          normaspect(viewaspect(&ourview)*hmult/vmult, &pixaspect, &hres, &vres);
256          sprintf(hrbuf, "%d", hres);
257          rpargv[rpargc++] = "-x"; rpargv[rpargc++] = hrbuf;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines