X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Fgame.cpp;fp=src%2Fgame.cpp;h=8257e20164fddcdab2ba29797573ab73a0b2c22d;hb=cee3f708b8eed01b3769bd0adf64e3d2738e3f44;hp=b10c68a0c17379d157e9cc253945ba1aa3743c0a;hpb=78036bae87af5f4c35a6eeb56d443b7cf93fcf73;p=quix0rs-blobwars.git diff --git a/src/game.cpp b/src/game.cpp index b10c68a..8257e20 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -316,7 +316,9 @@ int gameover() if (game.canContinue > 1) { Widget *widget = engine.getWidgetByName("gameOverNo"); - snprintf(widget->label, sizeof widget->label, "%s (%d)", widget->label, game.canContinue); + char postfix[100]; + snprintf(postfix, sizeof postfix, " (%d)", game.canContinue); + strncat(widget->label, postfix, sizeof widget->label); } while (true)