drop .aec extension in favor of ccsds .rz
authorMathis Rosenhauer <rosenhauer@dkrz.de>
Tue, 4 Feb 2014 08:05:45 +0000 (09:05 +0100)
committerMathis Rosenhauer <rosenhauer@dkrz.de>
Tue, 4 Feb 2014 08:05:45 +0000 (09:05 +0100)
src/aec.c

index f438b95..86e6a5b 100644 (file)
--- a/src/aec.c
+++ b/src/aec.c
@@ -180,16 +180,16 @@ int main(int argc, char *argv[])
 
         if (dflag)
         {
-            if ((ext = strstr(infn, ".aec")) == NULL)
+            if ((ext = strstr(infn, ".rz")) == NULL)
             {
-                fprintf(stderr, "Error: input file needs to end with .aec\n");
+                fprintf(stderr, "Error: input file needs to end with .rz\n");
                 exit(-1);
             }
             strncpy(outfn, infn, ext - infn);
         }
         else
         {
-            sprintf(outfn, "%s.aec", infn);
+            sprintf(outfn, "%s.rz", infn);
         }
 
         if ((outfp = fopen(outfn, "w")) == NULL)