# | Line 86 | Line 86 | static const char RCSid[] = "$Id$"; | |
---|---|---|
86 | #include <string.h> | |
87 | #include <ctype.h> | |
88 | #include "rtmath.h" | |
89 | + | #include "resolu.h" |
90 | #include "platform.h" | |
91 | #include "color.h" | |
92 | #include "resolu.h" | |
# | Line 394 | Line 395 | main(int argc, char *argv[]) | |
395 | case '5': /* 5-phase calculation */ | |
396 | nsuns = 1; | |
397 | fixed_sun_sa = PI/360.*atof(argv[++i]); | |
398 | + | if (fixed_sun_sa <= 0) { |
399 | + | fprintf(stderr, "%s: missing solar disk size argument for '-5' option\n", |
400 | + | argv[0]); |
401 | + | exit(1); |
402 | + | } |
403 | fixed_sun_sa *= fixed_sun_sa*PI; | |
404 | break; | |
405 | default: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |