From ea34c2c78a632bb5525c060820105fde8ac4a11c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 7 Mar 2007 02:29:54 +0000 Subject: [PATCH] fixed a bug reported by peanut where amx_fwrite() had the wrong sizeof() type --- amxmodx/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/file.cpp b/amxmodx/file.cpp index 3383d454..0dee9d87 100755 --- a/amxmodx/file.cpp +++ b/amxmodx/file.cpp @@ -435,7 +435,7 @@ static cell AMX_NATIVE_CALL amx_fwrite(AMX *amx, cell *params) case 4: { int c = static_cast(params[2]); - return fwrite(&c, sizeof(short), 1, fp); + return fwrite(&c, sizeof(int), 1, fp); } }