You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_cras...

21 lines
689 B

Author: Ole Streicher <olebole@debian.net>
Description: Increase c*type and ptype field string lengths
This is needed to allow C1TYPE='RA---TAN-SIP'
Bug: https://bugs.launchpad.net/ubuntu/+source/saods9/+bug/1458333
--- a/libwcs/wcsinit.c
+++ b/libwcs/wcsinit.c
@@ -399,11 +399,11 @@
}
/* World coordinate system reference coordinate information */
- if (hgetsc (hstring, "CTYPE1", &mchar, 16, ctype1)) {
+ if (hgetsc (hstring, "CTYPE1", &mchar, 9, ctype1)) {
/* Read second coordinate type */
strcpy (ctype2, ctype1);
- if (!hgetsc (hstring, "CTYPE2", &mchar, 16, ctype2))
+ if (!hgetsc (hstring, "CTYPE2", &mchar, 9, ctype2))
twod = 0;
else
twod = 1;