| # | Line 147 | Line 147 | headline( /* get line from header */ | |
|---|---|---|
| 147 | void *p | |
| 148 | ) | |
| 149 | { | |
| 150 | < | char fmt[32]; |
| 150 | > | char fmt[MAXFMTLEN]; |
| 151 | ||
| 152 | if (print_header) /* copy to output */ | |
| 153 | fputs(s, stdout); | |
| # | Line 207 | Line 207 | read_input(void) /* read glare sources from stdin */ | |
| 207 | goto memerr; | |
| 208 | if (sscanf(buf, FVFORMAT, &gs->dir[0], &gs->dir[1], | |
| 209 | &gs->dir[2]) != 3 || | |
| 210 | < | sscanf(buf, "%lf %lf", |
| 210 | > | sscanf(sskip2(buf, 3), "%lf %lf", |
| 211 | &gs->dom, &gs->lum) != 2) | |
| 212 | goto readerr; | |
| 213 | normalize(gs->dir); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |