- Timestamp:
- Oct 24, 2012, 3:34:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/Ohana/src/libfits/header/F_modify.c
r33648 r34562 68 68 if (!strcmp (mode, "%jd")) { snprintf (string, 81, "%-8s= %20jd / %-s ", field, va_arg (argp, intmax_t), comment); goto found_it; } 69 69 70 /* string value. Quotes must be at least 18 chars apart */70 /* string value. Quotes must be at least 8 chars apart */ 71 71 if (!strcmp (mode, "%s")) { 72 72 char *ptr = va_arg (argp, char *); 73 73 if (!ptr) goto invalid; 74 74 strncpy (data, ptr, 68); 75 snprintf (string, 81, "%-8s= '%- 18s' / %-s ", field, data, comment);75 snprintf (string, 81, "%-8s= '%-8s' / %-s ", field, data, comment); 76 76 goto found_it; 77 77 }
Note:
See TracChangeset
for help on using the changeset viewer.
