Index: trunk/psastro/src/psastroUtils.c
===================================================================
--- trunk/psastro/src/psastroUtils.c	(revision 5360)
+++ trunk/psastro/src/psastroUtils.c	(revision 5505)
@@ -14,5 +14,5 @@
     // how many lines in the header?
     // XXX EAM : is this calculation robust?
-    nLines = header->list->n;
+    nLines = myHeader->list->n;
     nBytes = nLines * 80;
     if (nBytes % 2880) {
@@ -39,5 +39,9 @@
 	sscanf (line, "%lf %lf %lf %lf", &X, &Y, &Mag, &dMag);
 	
-	pmAstromObj *obj = pmAstromObjAlloc (X, Y, Mag, dMag);
+	pmAstromObj *obj = pmAstromObjAlloc ();
+	obj->pix.X    = X;
+	obj->pix.Y    = Y;
+	obj->pix.Mag  = Mag;
+	obj->pix.dMag = dMag;
 	psArrayAdd (stars, obj, 100);
     }
