Index: /branches/rel10_ifa/psLib/src/astro/psTime.c
===================================================================
--- /branches/rel10_ifa/psLib/src/astro/psTime.c	(revision 6428)
+++ /branches/rel10_ifa/psLib/src/astro/psTime.c	(revision 6429)
@@ -10,6 +10,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-02-01 00:17:44 $
+ *  @version $Revision: 1.81.4.1 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-02-16 07:46:50 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -148,6 +148,13 @@
         cleanToken = cleanString(*inString, sLen);
 
+        // XXX this logic was wrong:
+        // if there are no more delimiters, the 0 char is at *inString + sLen
+        // you need to check if *inString + sLen == 0
+
         // Move to end of token
-        (*inString) += (sLen+1);
+        // XXX (*inString) += (sLen+1);
+        (*inString) += sLen;
+        if (**inString != 0)
+            (*inString) ++;
 
     } else if(**inString!='\0' && sLen==0) {
