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