Changeset 42389 for trunk/Ohana/src/libfits/matrix/F_compress_M.c
- Timestamp:
- Feb 8, 2023, 12:17:35 PM (3 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/libfits/matrix/F_compress_M.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
trunk/Ohana/src/libfits/matrix/F_compress_M.c
r41739 r42389 86 86 char keyword[11]; 87 87 for (i = 0; i < header[0].Naxes; i++) { 88 snprintf (keyword, 10, "ZNAXIS%d", i + 1);88 snprintf_nowarn (keyword, 10, "ZNAXIS%d", i + 1); 89 89 if (!gfits_modify (theader, keyword, OFF_T_FMT, 1, header[0].Naxis[i])) ESCAPE; 90 90 } 91 91 92 92 for (i = 0; i < header->Naxes; i++) { 93 snprintf (keyword, 10, "ZTILE%d", i + 1);93 snprintf_nowarn (keyword, 10, "ZTILE%d", i + 1); 94 94 if (!gfits_modify (theader, keyword, "%lu", 1, ztile[i])) ESCAPE; 95 95 } … … 131 131 // note the difference between the keywords (1 indexed) and the variables (0 indexed) 132 132 for (i = 0; i < Noptions; i++) { 133 snprintf (key, 10, "ZNAME%d", i + 1);133 snprintf_nowarn (key, 10, "ZNAME%d", i + 1); 134 134 if (!gfits_modify (header, key, "%s", 1, optname[i])) break; 135 135 136 snprintf (key, 10, "ZVAL%d", i + 1);136 snprintf_nowarn (key, 10, "ZVAL%d", i + 1); 137 137 if (!gfits_modify (header, key, "%s", 1, optvalue[i])) break; 138 138 }
Note:
See TracChangeset
for help on using the changeset viewer.
