Commit 93736c49 authored by Robert Butora's avatar Robert Butora
Browse files

fix warning (strncpy vs memcpy)

parent 473fb677
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ char * fix_header(char * header)
    * if uodated to ast-8.4.0 so remove VELO-LSR replacement
    */ 
   p = strstr(header, "VELO-LSR");
   if(p)strncpy(p,"VELO    ",8);
   if(p)memcpy(p,"VELO    ",8);


   /* HI_VGPS encodes rest frq as FREQ0 :
@@ -34,12 +34,12 @@ char * fix_header(char * header)

   // Fix 2 VELOCITY not standard by PaperIII
   p = strstr(header, "VELOCITY");
   if(p)strncpy(p,"VELO    ",8);
   if(p)memcpy(p,"VELO    ",8);


   // Fix 3 velocity axis unit capital, should be small letters (?see PaperIII) HI_VGPS MOS_017
   p = strstr(header, "M/S");
   if(p)strncpy(p,"m/s",3);
   if(p)memcpy(p,"m/s",3);


   return header;