From eafcf9f673d11dbb2658d91aead2853fe6d4c041 Mon Sep 17 00:00:00 2001 From: Alejandro <45500329+Alejandro12120@users.noreply.github.com> Date: Thu, 6 Oct 2022 21:30:08 +0200 Subject: [PATCH] Update minesweeper.c --- minesweeper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minesweeper.c b/minesweeper.c index 044ce85..1abb91d 100644 --- a/minesweeper.c +++ b/minesweeper.c @@ -81,7 +81,7 @@ static void render_callback(Canvas* const canvas, void* ctx) { } FuriString* tempStr; tempStr = furi_string_alloc(); - furi_string_cat_printf(tempStr, "Mines: %d", MINECOUNT - minesweeper_state->flags_set); + furi_string_printf(tempStr, "Mines: %d", MINECOUNT - minesweeper_state->flags_set); canvas_set_font(canvas, FontSecondary); canvas_draw_str_aligned(canvas, 0, 0, AlignLeft, AlignTop, furi_string_get_cstr(tempStr)); furi_string_free(tempStr); @@ -93,7 +93,7 @@ static void render_callback(Canvas* const canvas, void* ctx) { minutes = (int) seconds / 60; seconds = seconds % 60; } - furi_string_cat_printf(tempStr, "%01d:%02d", minutes, seconds); + furi_string_printf(tempStr, "%01d:%02d", minutes, seconds); canvas_draw_str_aligned(canvas, 128, 0, AlignRight, AlignTop, furi_string_get_cstr(tempStr)); furi_string_free(tempStr); @@ -512,4 +512,4 @@ int32_t minesweeper_app(void* p) { free(minesweeper_state); return 0; -} \ No newline at end of file +}