瀏覽代碼

fix compiler warnings

Dmitry Matyukhin 3 年之前
父節點
當前提交
bd9731412d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      game_reversi.c

+ 1 - 1
game_reversi.c

@@ -93,7 +93,7 @@ static void draw_callback(Canvas *const canvas, void *ctx) {
 
   canvas_set_font(canvas, FontPrimary);
   // draw score
-  char score_str[10];
+  char score_str[25];
   memset(score_str, 0, sizeof(score_str));
   snprintf(score_str, sizeof(score_str), "%d - %d", whites, blacks);