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

Comparing ray/src/util/xglaresrc.c (file contents):
Revision 2.10 by greg, Wed Jan 24 04:39:52 2018 UTC vs.
Revision 2.11 by greg, Mon Apr 2 16:45:41 2018 UTC

# Line 205 | Line 205 | circle_sources(                /* circle sources listed in fp */
205                                  XFlush(theDisplay);
206                                  return;
207                          }
208 <                        if (sscanf(linbuf, "%lf %lf %lf %lf %lf",
209 <                                        &dir[0], &dir[1], &dir[2],
210 <                                        &dom, &lum) != 5)
208 >                        if (sscanf(linbuf, FVFORMAT,
209 >                                        &dir[0], &dir[1], &dir[2]) != 3 ||
210 >                                        sscanf(sskip2(linbuf, 3), "%lf %lf",
211 >                                                &dom, &lum) != 2)
212                                  break;
213                          circle(dir, dom);
214                          value(dir, lum);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines