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
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)