Index: trunk/FACT++/src/simpleFitsDumper.cc
===================================================================
--- trunk/FACT++/src/simpleFitsDumper.cc	(revision 10826)
+++ trunk/FACT++/src/simpleFitsDumper.cc	(revision 10827)
@@ -37,9 +37,11 @@
             break;
             case CCfits::Tushort:
-                targetFile << *reinterpret_cast<const unsigned short*>(charSrc);
+                reverse_copy(charSrc, charSrc+sizeof(unsigned short), copyBuffer);
+                targetFile << *reinterpret_cast<const unsigned short*>(copyBuffer);
                 charSrc += sizeof(char);
             break;
             case CCfits::Tshort:
-                targetFile << *reinterpret_cast<const short*>(charSrc);
+                reverse_copy(charSrc, charSrc+sizeof(short), copyBuffer);
+                targetFile << *reinterpret_cast<const short*>(copyBuffer);
                 charSrc += sizeof(char);
             break;
