IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2006, 2:31:04 PM (20 years ago)
Author:
Paul Price
Message:

Adding psMetadataItemCopy; moving psRegion into its own file, adding psRegionAlloc and other support so we can put it on the metadata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psLib/src/fits/psFitsHeader.c

    r6719 r6728  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    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 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    118118                    }
    119119                    // Remove trailing spaces, which are not significant, according to the FITS standard
    120                     // http://archive.stsci.edu/fits/fits_standard/node31.html#SECTION00921000000000000000
     120                    // http://archive.stsci.edu/fits/fits_standard/node31.html
    121121                    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') {
    123124                        // This is a trailing space, not a leading space.
    124125                        lastSpace[0] = '\0'; // Truncate the string here
Note: See TracChangeset for help on using the changeset viewer.