summaryrefslogtreecommitdiff
blob: 548bd2b20ca420f0db3cf06a5b74e10ef5799990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- xdrvr.c	2010-06-27 15:21:49.026967128 +0200
+++ xdrvr_new.c	2010-06-27 15:22:57.132069867 +0200
@@ -864,11 +864,9 @@
 int zdate_(string)
 char *string;
 {
-  static char tmp[25];
   time_t now;
   now = time(NULL);
-  strcpy(tmp,ctime(&now));
-  strncpy(string,tmp,25);
+  strncpy(string,ctime(&now),25);
   return(1);
 }
 int slaap_(int *i)