Changeset 6728 for branches/rel10_ifa/psLib/src/fits/psFitsHeader.c
- Timestamp:
- Mar 29, 2006, 2:31:04 PM (20 years ago)
- File:
-
- 1 edited
-
branches/rel10_ifa/psLib/src/fits/psFitsHeader.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psLib/src/fits/psFitsHeader.c
r6719 r6728 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.2.4. 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-03- 28 23:17:18$9 * @version $Revision: 1.2.4.3 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-03-30 00:31:04 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 118 118 } 119 119 // Remove trailing spaces, which are not significant, according to the FITS standard 120 // http://archive.stsci.edu/fits/fits_standard/node31.html #SECTION00921000000000000000120 // http://archive.stsci.edu/fits/fits_standard/node31.html 121 121 char *lastSpace = NULL; // The last space in the string 122 while ((lastSpace = strrchr(keyValueFixed, ' ')) && lastSpace[1] == '\0') { 122 while (strlen(keyValueFixed) > 1 && (lastSpace = strrchr(keyValueFixed, ' ')) && 123 lastSpace[1] == '\0') { 123 124 // This is a trailing space, not a leading space. 124 125 lastSpace[0] = '\0'; // Truncate the string here
Note:
See TracChangeset
for help on using the changeset viewer.
