Index: trunk/stac/src/shift.c
===================================================================
--- trunk/stac/src/shift.c	(revision 5743)
+++ trunk/stac/src/shift.c	(revision 6771)
@@ -90,5 +90,5 @@
     psRegion imageRegion = {0, 0, 0, 0}; // Region of image to read
     psMetadata *header = psFitsReadHeader(NULL, imageFile); // FITS header
-    psImage *image = psFitsReadImage(NULL, imageFile, imageRegion, 0);
+    psImage *image = psFitsReadImage(imageFile, imageRegion, 0);
     if (image == NULL) {
         psErrorStackPrint(stderr, "Fatal error: Unable to read %s\n", inName);
@@ -155,5 +155,5 @@
         psTrace("stac", 3, "Clipping %d NaN pixels to zero.\n", numPix);
     }
-    if (!psFitsWriteImage(outFile, header, transformed->data[0], 0)) {
+    if (!psFitsWriteImage(outFile, header, transformed->data[0], 0, NULL)) {
         psErrorStackPrint(stderr, "Unable to write image: %s\n", outName);
     }
