Maelstrom: Fixed compiler warnings (c1b24)

https://github.com/libsdl-org/Maelstrom/commit/c1b2434a02b5269d3f1cb02c80ee94ac4667a28d

From c1b2434a02b5269d3f1cb02c80ee94ac4667a28d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 30 May 2012 17:17:08 -0400
Subject: [PATCH] Fixed compiler warnings

---
 maclib/Mac_FontServ.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/maclib/Mac_FontServ.cpp b/maclib/Mac_FontServ.cpp
index 43c21fe5..4b2ef5f8 100644
--- a/maclib/Mac_FontServ.cpp
+++ b/maclib/Mac_FontServ.cpp
@@ -175,8 +175,9 @@ FontServ:: NewFont(const char *fontname, int ptsize)
 
 	/* Now, Fent.ID is the ID of the correct NFNT resource */
 	font = new MFont;
-	font->name = new char[SDL_strlen(fontname)+1];
-	SDL_strlcpy(font->name, fontname, SDL_strlen(fontname)+1);
+    size_t size = SDL_strlen(fontname)+1;
+	font->name = new char[size];
+	SDL_strlcpy(font->name, fontname, size);
 	font->ptsize = ptsize;
 	font->nfnt = GetFontData("NFNT", Fent.ID);
 	if ( font->nfnt == NULL ) {