1 |
tupone 10/11/02 09:29:36 |
2 |
|
3 |
Added: toppler-1.1.3-ovflfix.patch |
4 |
Log: |
5 |
Fix overflow. Bug #339702 |
6 |
|
7 |
(Portage version: 2.1.9.24/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 games-puzzle/toppler/files/toppler-1.1.3-ovflfix.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/toppler/files/toppler-1.1.3-ovflfix.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/toppler/files/toppler-1.1.3-ovflfix.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: toppler-1.1.3-ovflfix.patch |
16 |
=================================================================== |
17 |
--- leveledit.cc.old 2010-11-02 09:33:24.000000000 +0100 |
18 |
+++ leveledit.cc 2010-11-02 10:12:11.000000000 +0100 |
19 |
@@ -436,7 +436,7 @@ |
20 |
|
21 |
snprintf(knam, 256, "%s%s", keymod2str(_ed_keys[k].mod), SDL_GetKeyName(_ed_keys[k].key)); |
22 |
|
23 |
- snprintf(tabbuf2, 256, "%3i", maxkeylen - scr_textlength(knam)); |
24 |
+ snprintf(tabbuf2, sizeof(tabbuf2), "%3i", maxkeylen - scr_textlength(knam)); |
25 |
if (tabbuf2[0] < '0') tabbuf2[0] = '0'; |
26 |
if (tabbuf2[1] < '0') tabbuf2[1] = '0'; |
27 |
if (tabbuf2[2] < '0') tabbuf2[2] = '0'; |