From 62b03a7cdeeda686dc8fe7863e32686a9670906e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 31 Aug 2019 22:20:28 -0400 Subject: [PATCH] Card: Zero out game array within setCurrentGame for nullptr Previously this was zeroing out the maker array, which it shouldn't be doing. --- lib/kabufuda/Card.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kabufuda/Card.cpp b/lib/kabufuda/Card.cpp index 4dd445f..cf5b0ae 100644 --- a/lib/kabufuda/Card.cpp +++ b/lib/kabufuda/Card.cpp @@ -691,7 +691,7 @@ bool Card::moveFileTo(FileHandle& fh, Card& dest) void Card::setCurrentGame(const char* game) { if (game == nullptr) { - memset(m_game, 0, 2); + memset(m_game, 0, sizeof(m_game)); return; }