Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37538302
en ru br
ALT Linux repos
S:1.0-alt3.qa4
5.0: 1.0-alt3
4.1: 0.1-alt1.1
4.0: 0.1-alt1.1
3.0: 0.1-alt1.1

Group :: Games/Arcade
RPM: pachi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: pachi-alt-src-off-by-one_fix.patch
Download


--- src/text.c.orig
+++ src/text.c
@@ -15,7 +15,7 @@ void print_text(SDL_Surface *font, SDL_Surface *surface, int font_w, int font_h,
     srctxt.y = 0;
     int linecounter = 0 ; // este contador se utiliza para saber en que linea imprimimos el texto
     int charpos = 0;
-    for(int charcounter = 0; charcounter <= (strlen(texto));charcounter++)
+    for(int charcounter = 0; charcounter < strlen(texto); charcounter++)
     {
 	int curchar=texto[charcounter];
 	if(curchar == 94)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin