Package: qfits / 6.2.0-8

04-hierarch28-table-parsing.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
--- qfits-6.2.0.orig/saft/hierarch28.c
+++ qfits-6.2.0/saft/hierarch28.c
@@ -236,7 +236,7 @@ static int convert_eso_to_std_FITS(char
     while (fgets(line, FITS_LINE, convtab)!=NULL) {
         lineno++ ;
         if ((line[0]!='#') && (line[0]!='\n')) {
-            if (sscanf(line, "%[^=] = %[^;#]", kw1, kw2)!=2) {
+            if (sscanf(line, "%[a-zA-Z0-9 ] = %[a-zA-Z0-9 ]", kw1, kw2)!=2) {
                 fprintf(stderr,
                               "*** error parsing table file %s\n", name_conv);
                 fprintf(stderr, "line: %d\n", lineno) ;