1 |
tupone 10/10/28 08:14:45 |
2 |
|
3 |
Added: gens-2.15.5-ovflfix.patch |
4 |
Log: |
5 |
Fix overflow. Bug #340665 |
6 |
|
7 |
(Portage version: 2.1.9.22/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 games-emulation/gens/files/gens-2.15.5-ovflfix.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/gens/files/gens-2.15.5-ovflfix.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/gens/files/gens-2.15.5-ovflfix.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: gens-2.15.5-ovflfix.patch |
16 |
=================================================================== |
17 |
--- src/gens/gens_core/cpu/68k/cpu_68k.c.old 2010-10-28 09:34:52.000000000 +0200 |
18 |
+++ src/gens/gens_core/cpu/68k/cpu_68k.c 2010-10-28 09:35:53.000000000 +0200 |
19 |
@@ -239,8 +239,8 @@ |
20 |
memset (Ram_Word_2M, 0, 256 * 1024); |
21 |
memset (Ram_Word_1M, 0, 256 * 1024); |
22 |
|
23 |
- memset (COMM.Command, 0, 8 * 5); |
24 |
- memset (COMM.Status, 0, 8 * 5); |
25 |
+ memset (COMM.Command, 0, sizeof (COMM.Command)); |
26 |
+ memset (COMM.Status, 0, sizeof (COMM.Status)); |
27 |
|
28 |
LED_Status = S68K_State = S68K_Mem_WP = S68K_Mem_PM = Ram_Word_State = 0; |
29 |
COMM.Flag = Init_Timer_INT3 = Timer_INT3 = Int_Mask_S68K = 0; |