From: | "Alfredo Tupone (tupone)" <tupone@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-emulation/visualboyadvance/files: visualboyadvance-1.7.2-ovflfix.patch |
Date: | Tue, 02 Nov 2010 14:49:02 |
Message-Id: | 20101102144859.3F2A52003C@flycatcher.gentoo.org |
1 | tupone 10/11/02 14:48:59 |
2 | |
3 | Added: visualboyadvance-1.7.2-ovflfix.patch |
4 | Log: |
5 | Fix overflow. Bug #339122 |
6 | |
7 | (Portage version: 2.1.9.24/cvs/Linux i686) |
8 | |
9 | Revision Changes Path |
10 | 1.1 games-emulation/visualboyadvance/files/visualboyadvance-1.7.2-ovflfix.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/visualboyadvance/files/visualboyadvance-1.7.2-ovflfix.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/visualboyadvance/files/visualboyadvance-1.7.2-ovflfix.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: visualboyadvance-1.7.2-ovflfix.patch |
16 | =================================================================== |
17 | --- src/sdl/debugger.cpp.old 2010-11-02 15:37:53.000000000 +0100 |
18 | +++ src/sdl/debugger.cpp 2010-11-02 15:38:13.000000000 +0100 |
19 | @@ -1389,7 +1389,7 @@ |
20 | { |
21 | char buffer[10]; |
22 | printf("Are you sure you want to quit (y/n)? "); |
23 | - fgets(buffer, 1024, stdin); |
24 | + fgets(buffer, sizeof(buffer), stdin); |
25 | |
26 | if(buffer[0] == 'y' || buffer[0] == 'Y') { |
27 | debugger = false; |