IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 25, 2012, 10:20:57 AM (14 years ago)
Author:
eugene
Message:

fix some minor syntax issues creating non-standard FITS files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/header/F_modify.c

    r33648 r34577  
    6868  if (!strcmp (mode, "%jd"))  { snprintf (string, 81, "%-8s= %20jd / %-s ",   field, va_arg (argp, intmax_t),           comment); goto found_it; }
    6969
    70   /* string value.  Quotes must be at least 18 chars apart */
     70  /* string value.  Quotes must be at least 8 chars apart */
    7171  if (!strcmp (mode, "%s")) {
    7272    char *ptr = va_arg (argp, char *);
    7373    if (!ptr) goto invalid;
    7474    strncpy (data, ptr, 68);
    75     snprintf (string, 81, "%-8s= '%-18s' / %-s ", field, data, comment);
     75    snprintf (string, 81, "%-8s= '%-8s' / %-s ", field, data, comment);
    7676    goto found_it;
    7777  }
Note: See TracChangeset for help on using the changeset viewer.