Index: /branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/grefstars.c
===================================================================
--- /branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/grefstars.c	(revision 38307)
+++ /branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/grefstars.c	(revision 38308)
@@ -24,10 +24,14 @@
     InitStar (&stars[N]);
 
-    dparse (&stars[N].average.R,  1, line);
-    dparse (&stars[N].average.D,  2, line);
+    int status = sscanf (line, "%lf %lf %f %f %x", 
+		     &stars[N].average.R,  &stars[N].average.D,  
+		     &stars[N].measure.M, &stars[N].measure.dM, 
+		     &stars[N].measure.photFlags);
+    if ((status != 4) && (status != 5)) {
+      fprintf (stderr, "error reading line: %s\n", line);
+      N --;
+      continue;
+    }
     stars[N].average.R = ohana_normalize_angle (stars[N].average.R);
-
-    fparse (&stars[N].measure.M,  3, line);
-    fparse (&stars[N].measure.dM, 4, line);
 
     stars[N].measure.R = stars[N].average.R;
