From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-chemistry/platon/files: 20101125-buffer-overflow.patch 20101113-buffer-overflow.patch |
Date: | Thu, 25 Nov 2010 19:10:44 |
Message-Id: | 20101125191036.EEBA620054@flycatcher.gentoo.org |
1 | jlec 10/11/25 19:10:36 |
2 | |
3 | Added: 20101125-buffer-overflow.patch |
4 | Removed: 20101113-buffer-overflow.patch |
5 | Log: |
6 | Version Bump, #346789 |
7 | |
8 | (Portage version: 2.2.0_alpha5/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.1 sci-chemistry/platon/files/20101125-buffer-overflow.patch |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/files/20101125-buffer-overflow.patch?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/files/20101125-buffer-overflow.patch?rev=1.1&content-type=text/plain |
15 | |
16 | Index: 20101125-buffer-overflow.patch |
17 | =================================================================== |
18 | --- xdrvr.c 2010-06-27 15:21:49.026967128 +0200 |
19 | +++ xdrvr_new.c 2010-06-27 15:22:57.132069867 +0200 |
20 | @@ -864,11 +864,9 @@ |
21 | int zdate_(string) |
22 | char *string; |
23 | { |
24 | - static char tmp[25]; |
25 | time_t now; |
26 | now = time(NULL); |
27 | - strcpy(tmp,ctime(&now)); |
28 | - strncpy(string,tmp,25); |
29 | + strncpy(string,ctime(&now),25); |
30 | return(1); |
31 | } |
32 | int slaap_(int *i) |