m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/modules/time.c,v


From: Eric Blake
Subject: Changes to m4/modules/time.c,v
Date: Wed, 27 Sep 2006 12:24:58 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      06/09/27 12:24:53

Index: modules/time.c
===================================================================
RCS file: /sources/m4/m4/modules/time.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- modules/time.c      26 Sep 2006 13:19:26 -0000      1.16
+++ modules/time.c      27 Sep 2006 12:24:53 -0000      1.17
@@ -98,6 +98,7 @@
 {
   time_t t;
   int i;
+  const char *s;
 
   if (argc == 2)
     {
@@ -107,7 +108,8 @@
   else
     t = time (0L);
 
-  obstack_grow (obs, ctime (&t), 24);
+  s = ctime (&t);
+  obstack_grow (obs, s, 24);
 }
 
 static void




reply via email to

[Prev in Thread] Current Thread [Next in Thread]