From 215cb25c5c236319fc6b80295037484517899e4f 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 201c171..1d167ce 100644 --- a/lib/kabufuda/Card.cpp +++ b/lib/kabufuda/Card.cpp @@ -689,7 +689,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; }