]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-vos-ctime-fix-20050809
authorDavid Thompson <thomas@cs.wisc.edu>
Tue, 9 Aug 2005 19:40:07 +0000 (19:40 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Aug 2005 19:40:07 +0000 (19:40 +0000)
FIXES 20748

fix larger than 4 byte ctime case

(cherry picked from commit 42e081360efbfc847488aeaf4c604ea7030edccd)

src/volser/vos.c

index abbb27b02452e8236fafb86ed4ca932d7256669b..dee375beb521e00bf7c57faefab9cf41e5ac7f1a 100644 (file)
@@ -448,8 +448,8 @@ DumpFunction(struct rx_call *call, char *filename)
 static char *
 vos_ctime(afs_int32 *timep)
 {
-    time_t *foo = timep;
-    return ctime(foo);
+    time_t foo = *timep;
+    return ctime(&foo);
 }
 #else
 #define vos_ctime ctime