Skip to content
Snippets Groups Projects
Commit 93736c49 authored by Robert Butora's avatar Robert Butora
Browse files

fix warning (strncpy vs memcpy)

parent 473fb677
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment