diff --git a/data-access/engine/src/common/src/fix_header.cpp b/data-access/engine/src/common/src/fix_header.cpp index 7cfd1f45b4455f68f79355573973f58a130479c4..5e4ae3bf34434173e1a6dca2348351e95e1b2958 100644 --- a/data-access/engine/src/common/src/fix_header.cpp +++ b/data-access/engine/src/common/src/fix_header.cpp @@ -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;