Changeset 17053
- Timestamp:
- Mar 19, 2008, 10:23:06 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsHeader.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsHeader.c
r17048 r17053 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2008-03-19 00:11:36 $9 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2008-03-19 20:23:06 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 218 218 // http://archive.stsci.edu/fits/fits_standard/node31.html 219 219 char *lastSpace = NULL; // The last space in the string 220 while (strlen(fixed) > 1&& (lastSpace = strrchr(fixed, ' ')) && lastSpace[1] == '\0') {220 while (strlen(fixed) > 0 && (lastSpace = strrchr(fixed, ' ')) && lastSpace[1] == '\0') { 221 221 // This is a trailing space, not a leading space. 222 222 lastSpace[0] = '\0'; // Truncate the string here
Note:
See TracChangeset
for help on using the changeset viewer.
