Skip to content

Commit

Permalink
Update main.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanrs authored Apr 10, 2020
1 parent 5b81571 commit 771e0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dogplay/src/main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int main(){
);
loose = true;
} else {
char scoreString[score ? (unsigned int)std::log(score) + 1 : 1];
char scoreString[(score ? (unsigned int)std::log(score) + 1 : 1) + 7];
sprintf(scoreString, "score:%d", score);
scoreDisplay.setString(scoreString);
}
Expand Down

0 comments on commit 771e0ab

Please sign in to comment.