Changeset 34577 for trunk/Ohana/src/libfits/header/F_print.c
- Timestamp:
- Oct 25, 2012, 10:20:57 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/header/F_print.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/header/F_print.c
r33648 r34577 63 63 if (!strcmp (mode, "%jd")) { snprintf (string, 81, "%-8s= %20jd / %46s ", field, va_arg (argp, intmax_t), blank); goto found_it; } 64 64 65 /* string value. Quotes must be at least 18 chars apart. Longer lines will this should be fixed to allow arbitrary string lengths, up to 69 chars */65 /* string value. Quotes must be at least 8 chars apart. Longer lines will this should be fixed to allow arbitrary string lengths, up to 69 chars */ 66 66 if (!strcmp (mode, "%s")) { 67 67 char *ptr = va_arg (argp, char *); … … 69 69 strcpy (line, ptr); 70 70 line[68] = 0; 71 snprintf (string, 81, "%-8s= '%- 18s' / %46s ", field, line, blank);71 snprintf (string, 81, "%-8s= '%-8s' / %46s ", field, line, blank); 72 72 goto found_it; 73 73 }
Note:
See TracChangeset
for help on using the changeset viewer.
