Index: trunk/pstamp/src/ppstampMakeStamp.c
===================================================================
--- trunk/pstamp/src/ppstampMakeStamp.c	(revision 17047)
+++ trunk/pstamp/src/ppstampMakeStamp.c	(revision 17052)
@@ -2,4 +2,5 @@
 #include <config.h>
 #endif
+#include <strings.h>
 
 #include "ppstamp.h"
@@ -122,5 +123,5 @@
         lastY = image->row0 + image->numRows;
     }
-        
+
     int leftBlank = 0;
     int dstX  = 0;
@@ -173,5 +174,5 @@
 // Build the postage stamp output file
 
-static bool makeStamp(pmConfig *config, ppstampOptions *options, pmFPAfile *input, 
+static bool makeStamp(pmConfig *config, ppstampOptions *options, pmFPAfile *input,
                 pmChip *inChip, pmFPAview *view)
 {
@@ -194,5 +195,5 @@
 
     //   psMetadataPrint(stderr, inChip->concepts, 0);
-    
+
     // These default to zero. would that be ok?
     psMetadataAddS32(target->concepts, PS_LIST_TAIL, "CELL.XBIN", PS_META_REPLACE, "Binning in x", 1);
@@ -236,5 +237,5 @@
         if (ppstampMegacamWorkaround) {
             // the coordinates of the mosaic are shifted 32 pixels from the chip
-            // TODO does this always apply? For example I doubt that applies to 
+            // TODO does this always apply? For example I doubt that applies to
             // skycells.
             extractRegion.x0 -= 32;
@@ -345,5 +346,5 @@
     options->roi.y0 = INFINITY;
     options->roi.y1 = -INFINITY;
-    
+
     pt->sky->rErr = 0;
     pt->sky->dErr = 0;
@@ -422,10 +423,10 @@
 
         if (regionContainsPoint(chipBounds, center->chip)) {
-            psLogMsg("ppstampMakeStamp", 2, "Found center (%f %f) on chip: %s\n", 
+            psLogMsg("ppstampMakeStamp", 2, "Found center (%f %f) on chip: %s\n",
                 center->chip->x, center->chip->y, chipName);
             onChip = true;
         }
     } else {
-        // center specified in pixels. 
+        // center specified in pixels.
         // If the user specified a name of a chip name wait until we get to that one.
         // If no chip name was specified, select this one (the first one that had data)
@@ -499,5 +500,5 @@
     pmChip *chip;
     while ((chip = pmFPAviewNextChip(view, input->fpa, 1)) != NULL) {
-	bool allDone = false;
+        bool allDone = false;
 
         if (!chip->process || !chip->file_exists) {
@@ -518,5 +519,5 @@
             break;
         case PPSTAMP_ON:
-	case PPSTAMP_PARTIALLY_ON:
+        case PPSTAMP_PARTIALLY_ON:
             returnval = makeStamp(config, options, input, chip, view);
             allDone = true;
@@ -532,5 +533,5 @@
         }
 
-	pmFPAfileIOChecks(config, view, PM_FPA_AFTER);
+        pmFPAfileIOChecks(config, view, PM_FPA_AFTER);
 
         if (allDone) {
@@ -538,5 +539,5 @@
             break;
         }
-    } 
+    }
     pmFPAfileIOChecks(config, view, PM_FPA_AFTER);
 
