J :
* Fixes for compilation on 64-bit architectures : string position-returning functions return size_t, not uint. Fix that. * Fixes warnings with new gcc about non-fixed string AND no arguments. NOTE : 64-bit architectures still do not compile. There are 2 different places where printf is used with a specifier that is not large enough on 64-bit because size_t is now a ulong and not a uint. The solution on GNU systems is the %zu specifier, but as I'm not sure it is supported on windows I don't want to introduce a huge hard-to-notice bug, so I'll do it at a time when I got a windowser to back me up.
This commit is contained in:
@@ -179,7 +179,7 @@ void Credits::Render(){
|
||||
f3->SetColor(ARGB(255,255,255,255));
|
||||
char buffer[512];
|
||||
if (!g->turn){
|
||||
sprintf(buffer, _("Please check your deck (not enough cards?)").c_str() );
|
||||
sprintf(buffer, "%s", _("Please check your deck (not enough cards?)").c_str() );
|
||||
}else{
|
||||
if (!p1->isAI() && p2->isAI() ){
|
||||
if (g->gameOver != p1){
|
||||
@@ -192,7 +192,7 @@ void Credits::Render(){
|
||||
f2->DrawString(unlockedString.c_str(),SCREEN_WIDTH/2, 80,JGETEXT_CENTER);
|
||||
}
|
||||
}else{
|
||||
sprintf (buffer, _("You have been defeated").c_str());
|
||||
sprintf (buffer, "%s", _("You have been defeated").c_str());
|
||||
}
|
||||
}else{
|
||||
int winner = 2;
|
||||
|
||||
Reference in New Issue
Block a user