From 4709d898422f615f4c0200b1ef9d1ca5d133542a Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 6 Feb 2005 13:59:37 +0000 Subject: [PATCH] Urm, whoops. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@869 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_ui.c | 2 +- engine/common/ui_public.h | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/engine/client/cl_ui.c b/engine/client/cl_ui.c index e62b734ab..9034ae0aa 100644 --- a/engine/client/cl_ui.c +++ b/engine/client/cl_ui.c @@ -1040,7 +1040,7 @@ long UI_SystemCallsEx(void *offset, unsigned int mask, int fn, const long *arg) } vci->bottomcolour = cl.players[i].bottomcolor; vci->frags = cl.players[i].frags; - strcpy(vci->name, cl.players[i].name); + Q_strncpyz(vci->name, cl.players[i].name, UIMAX_SCOREBOARDNAME); vci->ping = cl.players[i].ping; vci->pl = cl.players[i].pl; vci->starttime = cl.players[i].entertime; diff --git a/engine/common/ui_public.h b/engine/common/ui_public.h index 8766d1b0f..97b3e61c9 100644 --- a/engine/common/ui_public.h +++ b/engine/common/ui_public.h @@ -3,15 +3,9 @@ #define UIMAX_SCOREBOARDNAME 16 #define UIMAX_INFO_STRING 196 -#ifdef MAX_SCOREBOARDNAME -#if MAX_SCOREBOARDNAME != UIMAX_SCOREBOARDNAME -#pragma message("MAX_SCOREBOARDNAME doesn't match UIMAX_SCOREBOARDNAME") -#endif -#endif - #ifdef UIMAX_INFO_STRING -#if UIMAX_INFO_STRING != UIMAX_INFO_STRING -#pragma message("MAX_SCOREBOARDNAME doesn't match UIMAX_SCOREBOARDNAME") +#if MAX_INFO_STRING != UIMAX_INFO_STRING +#pragma message("MAX_INFO_STRING doesn't match UIMAX_INFO_STRING") #endif #endif