Index: trunk/psLib/src/astro/psTime.c
===================================================================
--- trunk/psLib/src/astro/psTime.c	(revision 5217)
+++ trunk/psLib/src/astro/psTime.c	(revision 5222)
@@ -10,6 +10,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-26 21:13:12 $
+ *  @version $Revision: 1.73 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-10-04 01:31:40 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -486,5 +486,6 @@
 
     // Get the system time
-    if (gettimeofday(&now, (struct timezone *)0) == -1) {
+    //    if (gettimeofday(&now, (struct timezone *)0) == -1) {
+    if (gettimeofday(&now, 0) == -1) {
         psError(PS_ERR_OS_CALL_FAILED, true,
                 PS_ERRORTEXT_psTime_GET_TOD_FAILED);
Index: trunk/psLib/src/mathtypes/psVector.c
===================================================================
--- trunk/psLib/src/mathtypes/psVector.c	(revision 5217)
+++ trunk/psLib/src/mathtypes/psVector.c	(revision 5222)
@@ -9,6 +9,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-09-30 23:09:13 $
+*  @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-10-04 01:31:40 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -19,4 +19,5 @@
 #include <stdio.h>
 #include <math.h>
+#include <unistd.h>
 
 #include "psMemory.h"
@@ -603,25 +604,15 @@
                       char *name)
 {
-    /*
-        XXXX: This is seg faulting.  So I'm getting rid of it.
-        FILE *f;
-        f = fdopen(fd, "a+");
-        fprintf (f, "vector: %s\n", name);
-
-        for (int i = 0; i < a[0].n; i++) {
-            fprintf (f, "%f\n", p_psVectorGetElementF64(a, i));
-        }
-        fprintf (f, "\n");
-    // XXXX: temp fix: this should be recoded.
-    //    fclose(f);
-        return (true);
-    */
-
-    printf ("vector: %s\n", name);
+    char line[1024];
+
+    sprintf (line, "vector: %s\n", name);
+    write (fd, line, strlen(line));
+
     for (int i = 0; i < a[0].n; i++) {
-        printf("%f\n", p_psVectorGetElementF64(a, i));
-    }
-    printf("\n");
-    fflush(stdout);
+        sprintf (line, "%f\n", p_psVectorGetElementF64(a, i));
+        write (fd, line, strlen(line));
+    }
+    sprintf (line, "\n");
+    write (fd, line, strlen(line));
     return (true);
 }
