- Timestamp:
- Jan 31, 2023, 10:55:31 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/Ohana/src/libfits/header/F_print.c
r42116 r42343 78 78 79 79 found_it: 80 strncpy (p, string, 80);80 memcpy (p, string, 80); // do not use strncpy_nowarn: do NOT set last byte to NULL 81 81 va_end (argp); 82 82 return (TRUE); … … 137 137 if (!ptr) goto invalid; 138 138 bzero (line, 80); 139 strncpy (line, ptr, 71);139 strncpy_nowarn (line, ptr, 71); 140 140 snprintf (string, 200, "%-8s %-71s", field, line); 141 141 } … … 154 154 if (!strcmp (mode, "%C")) goto invalid; 155 155 156 strncpy (p, string, 80);156 memcpy (p, string, 80); // do not use strncpy_nowarn: do NOT set last byte to NULL 157 157 158 158 va_end (argp);
Note:
See TracChangeset
for help on using the changeset viewer.
