From 9f93ff516875bb0de5aeb5f457beec53596f22d9 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Thu, 29 Jan 2015 16:52:47 +0100 Subject: [PATCH] Fix potential formatting issue with nvault_[p]set --- dlls/nvault/amxxapi.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/nvault/amxxapi.cpp b/dlls/nvault/amxxapi.cpp index bb8f9618..f5f76ef6 100755 --- a/dlls/nvault/amxxapi.cpp +++ b/dlls/nvault/amxxapi.cpp @@ -172,8 +172,8 @@ static cell nvault_set(AMX *amx, cell *params) } NVault *pVault = g_Vaults.at(id); int len; - char *key = MF_GetAmxString(amx, params[2], 0, &len); - char *val = MF_FormatAmxString(amx, params, 3, &len); + const char *key = MF_GetAmxString(amx, params[2], 0, &len); + const char *val = MF_GetAmxString(amx, params[3], 1, &len); pVault->SetValue(key, val); @@ -190,8 +190,8 @@ static cell nvault_pset(AMX *amx, cell *params) } NVault *pVault = g_Vaults.at(id); int len; - char *key = MF_GetAmxString(amx, params[2], 0, &len); - char *val = MF_FormatAmxString(amx, params, 3, &len); + const char *key = MF_GetAmxString(amx, params[2], 0, &len); + const char *val = MF_GetAmxString(amx, params[3], 1, &len); pVault->SetValue(key, val, 0);