Changeset 40549 for trunk/Ohana/src/libfits/matrix/F_uncompress_M.c
- Timestamp:
- Oct 20, 2018, 8:58:31 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/matrix/F_uncompress_M.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/matrix/F_uncompress_M.c
r39457 r40549 98 98 gfits_delete (header, "ZTILE1", 1); 99 99 for (axis = 1; axis < header->Naxes; axis++) { 100 snprintf (key, 10, "ZTILE%d", axis + 1); 100 snprintf (key, 10, "ZTILE%d", axis + 1); 101 101 if (!gfits_scan (header, key, "%lu", 1, &ztile[axis])) ESCAPE; 102 102 gfits_delete (header, key, 1); … … 110 110 ALLOCATE (optvalue, char *, NOPTIONS); 111 111 for (Noptions = 0; TRUE; Noptions++) { 112 snprintf (key, 10, "ZNAME%d", Noptions + 1);112 snprintf_nowarn (key, 10, "ZNAME%d", Noptions + 1); 113 113 if (!gfits_scan (header, key, "%s", 1, word)) break; 114 114 gfits_delete (header, key, 1); 115 115 optname[Noptions] = strcreate (word); 116 116 117 snprintf (key, 10, "ZVAL%d", Noptions + 1);117 snprintf_nowarn (key, 10, "ZVAL%d", Noptions + 1); 118 118 if (!gfits_scan (header, key, "%s", 1, word)) ESCAPE; 119 119 gfits_delete (header, key, 1); … … 204 204 int colnum; 205 205 for (colnum = 1; TRUE; colnum++) { 206 snprintf (key, 10, "TTYPE%d", colnum);206 snprintf_nowarn (key, 10, "TTYPE%d", colnum); 207 207 if (!gfits_scan (ftable->header, key, "%s", 1, word)) ESCAPE; 208 208 if (!strcmp (word, "COMPRESSED_DATA")) break; … … 212 212 if (!gfits_varlength_column_define (ftable, &zdef, zcol)) ESCAPE; 213 213 gfits_delete (header, "TFIELDS", 1); 214 snprintf (key, 10, "TTYPE"OFF_T_FMT, zcol);214 snprintf_nowarn (key, 10, "TTYPE"OFF_T_FMT, zcol); 215 215 gfits_delete (header, key, 1); 216 snprintf (key, 10, "TFORM"OFF_T_FMT, zcol);216 snprintf_nowarn (key, 10, "TFORM"OFF_T_FMT, zcol); 217 217 gfits_delete (header, key, 1); 218 218
Note:
See TracChangeset
for help on using the changeset viewer.
