diff --git a/src/hu_stuff.c b/src/hu_stuff.c
index 319157d14a04eae819bb5dd896c8ceab68cb6c5e..33d74f6148d950bc881e9ebe4f442cc095bcdec2 100644
--- a/src/hu_stuff.c
+++ b/src/hu_stuff.c
@@ -590,7 +590,7 @@ static void Command_CSay_f(void)
 UINT8 spam_tokens[MAXPLAYERS] = { 1 }; // fill the buffer with 1 so the motd can be sent.
 tic_t spam_tics[MAXPLAYERS];
 
-static char *GetChatColorFromSkinColor(INT32 skincolor)
+static const char *GetChatColorFromSkinColor(INT32 skincolor)
 {
 	const char *textcolor = NULL;
 	UINT16 chatcolor = skincolors[skincolor].chatcolor;