From a0c29e7dd67abb15c74c85f07741784877edfdcd Mon Sep 17 00:00:00 2001 From: Joe Ludwig Date: Mon, 2 Sep 2013 11:39:10 -0700 Subject: General: * Fixed a variety of server browser issues with mods based on this SDK * Fixed many warnings on various platforms * Added source code for fgdlib and raytrace * Updated many source files with the latest shared source from TF2. OSX: * Added support for Xcode 4.6 * Switched OSX builds to use Xcode instead of makefiles * Moved libs from src/lib/osx32 to src/lib/public/osx32 or src/lib/common/osx32 to match windows better. Linux: * Moved libs from src/lib/linux32 to src/lib/public/linux32 or src/lib/common/linux32 to match windows better. --- mp/src/public/game/server/pluginvariant.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mp/src/public/game/server') diff --git a/mp/src/public/game/server/pluginvariant.h b/mp/src/public/game/server/pluginvariant.h index 1f0d5f32..5eb67a5e 100644 --- a/mp/src/public/game/server/pluginvariant.h +++ b/mp/src/public/game/server/pluginvariant.h @@ -56,7 +56,7 @@ public: fieldtype_t FieldType( void ) { return fieldType; } void SetBool( bool b ) { bVal = b; fieldType = FIELD_BOOLEAN; } - void SetString( char *str ) { Q_snprintf(iszVal, 1024, str); fieldType = FIELD_STRING; } + void SetString( char *str ) { Q_snprintf(iszVal, 1024, "%s", str); fieldType = FIELD_STRING; } void SetInt( int val ) { iVal = val, fieldType = FIELD_INTEGER; } void SetFloat( float val ) { flVal = val, fieldType = FIELD_FLOAT; } void SetEdict( edict_t *val ) { eVal = val; fieldType = FIELD_EHANDLE; } -- cgit v1.2.3