--- ray/src/util/xglaresrc.c 2018/01/24 04:39:52 2.10 +++ ray/src/util/xglaresrc.c 2018/04/02 16:45:41 2.11 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: xglaresrc.c,v 2.10 2018/01/24 04:39:52 greg Exp $"; +static const char RCSid[] = "$Id: xglaresrc.c,v 2.11 2018/04/02 16:45:41 greg Exp $"; #endif /* * Circle sources in a displayed image. @@ -205,9 +205,10 @@ circle_sources( /* circle sources listed in fp */ XFlush(theDisplay); return; } - if (sscanf(linbuf, "%lf %lf %lf %lf %lf", - &dir[0], &dir[1], &dir[2], - &dom, &lum) != 5) + if (sscanf(linbuf, FVFORMAT, + &dir[0], &dir[1], &dir[2]) != 3 || + sscanf(sskip2(linbuf, 3), "%lf %lf", + &dom, &lum) != 2) break; circle(dir, dom); value(dir, lum);