Skip to content

Commit

Permalink
Applied Debian patch for sprintf mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Thakore committed Sep 9, 2009
1 parent 9d05c66 commit 3309858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SFont.xs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void SFont_InternalInput( SDL_Surface *Dest, SFont_FontInfo *Font, int x, int y,
if ((ch=='\b')&&(strlen(text)>0))
text[strlen(text)-1]='\0';
else if (ch!='\b')
sprintf(text,"%s%c",text,ch);
sprintf(text+strlen(text),"%c",ch);
if (SFont_TextWidth2(Font,text)>PixelWidth) text[strlen(text)-1]='\0';
SDL_BlitSurface( Back, NULL, Dest, &rect);
SFont_PutString2(Dest, Font, x, y, text);
Expand Down

0 comments on commit 3309858

Please sign in to comment.