summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/platon/files/20101125-buffer-overflow.patch')
-rw-r--r--sci-chemistry/platon/files/20101125-buffer-overflow.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/sci-chemistry/platon/files/20101125-buffer-overflow.patch b/sci-chemistry/platon/files/20101125-buffer-overflow.patch
new file mode 100644
index 000000000000..548bd2b20ca4
--- /dev/null
+++ b/sci-chemistry/platon/files/20101125-buffer-overflow.patch
@@ -0,0 +1,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) \ No newline at end of file