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/libdvo/src/skyregion_gsc.c

    r42116 r42343  
    254254  ALLOCATE (regions, SkyRegion, Nregions);
    255255  for (i = 0; i < Nregions; i++) {
    256     strncpy (temp, &buffer[i*48], 48);
    257     temp[48] = 0;
     256    strncpy_nowarn (temp, &buffer[i*48], 48);
    258257    hstgsc_hms_to_deg (&Rmin, &Rmax, &Dmin, &Dmax, &temp[7]);
    259258    if (Dmax < Dmin) SWAP (Dmin, Dmax);
Note: See TracChangeset for help on using the changeset viewer.