IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2023, 10:55:31 AM (3 years ago)
Author:
eugene
Message:

convert instances of strncpy to strncpy_nowarn (or memcpy in specific cases where ending 0 is not desired)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/Ohana/src/misc/src/fakecmp.c

    r27435 r42343  
    8181    line[80] = 0;
    8282    bzero (keyword, 10);
    83     strncpy (keyword, line, 8);
     83    strncpy_nowarn (keyword, line, 8);
    8484   
    8585    /* replace existing keywords, unless this is a COMMENT or HISTORY field */
     
    8787      p = gfits_header_field (&header, keyword, 1);
    8888      if (p != (char *) NULL) {
    89         strncpy (p, line, 80);
     89        strncpy_nowarn (p, line, 80);
    9090        continue;
    9191      }
     
    106106
    107107    /* insert the new line here */
    108     strncpy (p, line, 80);
     108    strncpy_nowarn (p, line, 80);
    109109  }
    110110
Note: See TracChangeset for help on using the changeset viewer.