Index: /branches/eam_branches/ipp-pstamp-20260421/ppSim/src/ppSimLoadStars.c
===================================================================
--- /branches/eam_branches/ipp-pstamp-20260421/ppSim/src/ppSimLoadStars.c	(revision 43079)
+++ /branches/eam_branches/ipp-pstamp-20260421/ppSim/src/ppSimLoadStars.c	(revision 43080)
@@ -49,7 +49,9 @@
     psLogMsg("ppSim", PS_LOG_INFO, "Adding %ld reference stars", refStars->n);
 
+    // extend the array to accomodate the new stars:
     long oldSize = stars->n;
-    stars = psArrayRealloc (stars, refStars->n);
+    stars = psArrayRealloc (stars, stars->n + refStars->n);
 
+    // center of projection is the center of the boresite:
     psProjection *proj = psProjectionAlloc(ra0, dec0, scaleRad, scaleRad, PS_PROJ_TAN); // Projection
 
