diff -r 2c31629b07f4 -r 1f9f3580bb9c extensions/tf2/extension.cpp --- a/extensions/tf2/extension.cpp Thu Jun 26 08:07:47 2008 +0000 +++ b/extensions/tf2/extension.cpp Sun Jun 29 03:27:15 2008 +0000 @@ -65,14 +65,14 @@ { if (strcmp(g_pSM->GetGameFolderName(), "tf") != 0) { - snprintf(error, maxlength, "Cannot Load TF2 Extension on mods other than TF2"); + UTIL_Format(error, maxlength, "Cannot Load TF2 Extension on mods other than TF2"); return false; } ServerClass *sc = UTIL_FindServerClass("CTFPlayer"); if (sc == NULL) { - snprintf(error, maxlength, "Could not find CTFPlayer server class"); + UTIL_Format(error, maxlength, "Could not find CTFPlayer server class"); return false; } @@ -80,18 +80,18 @@ if (!UTIL_FindDataTable(sc->m_pTable, "DT_TFPlayerShared", playerSharedOffset, 0)) { - snprintf(error, maxlength, "Could not find DT_TFPlayerShared data table"); + UTIL_Format(error, maxlength, "Could not find DT_TFPlayerShared data table"); return false; } sharesys->AddDependency(myself, "bintools.ext", true, true); - char conf_error[255]; + char conf_error[255] = ""; if (!gameconfs->LoadGameConfigFile("sm-tf2.games", &g_pGameConf, conf_error, sizeof(conf_error))) { if (conf_error) { - snprintf(error, maxlength, "Could not read sm-tf2.games.txt: %s", conf_error); + UTIL_Format(error, maxlength, "Could not read sm-tf2.games.txt: %s", conf_error); } return false; }