diff --git a/sourcemm/msvc7/sourcemm.vcproj b/sourcemm/msvc7/sourcemm.vcproj index 556c859..59411fe 100644 --- a/sourcemm/msvc7/sourcemm.vcproj +++ b/sourcemm/msvc7/sourcemm.vcproj @@ -76,8 +76,6 @@ OmitFramePointers="TRUE" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCEMM_EXPORTS" StringPooling="TRUE" - ExceptionHandling="TRUE" - RuntimeLibrary="4" BufferSecurityCheck="FALSE" UsePrecompiledHeader="0" WarningLevel="3" diff --git a/sourcemm/msvc8/sourcemm.vcproj b/sourcemm/msvc8/sourcemm.vcproj index 615c8d1..5639291 100644 --- a/sourcemm/msvc8/sourcemm.vcproj +++ b/sourcemm/msvc8/sourcemm.vcproj @@ -128,7 +128,6 @@ OmitFramePointers="true" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCEMM_EXPORTS;_CRT_SECURE_NO_DEPRECATE" StringPooling="true" - ExceptionHandling="1" RuntimeLibrary="0" BufferSecurityCheck="false" RuntimeTypeInfo="false" diff --git a/sourcemm/sourcemm.cpp b/sourcemm/sourcemm.cpp index 92e84d5..79b6f06 100644 --- a/sourcemm/sourcemm.cpp +++ b/sourcemm/sourcemm.cpp @@ -277,7 +277,6 @@ SMM_API void *CreateInterface(const char *iface, int *ret) char buffer[255]; char key[128], val[128]; - size_t len = 0; bool search = false; bool gamebin = false; char *ptr; @@ -290,9 +289,6 @@ SMM_API void *CreateInterface(const char *iface, int *ret) { buffer[0] = '\0'; fgets(buffer, sizeof(buffer), fp); - len = strlen(buffer); - if (buffer[len-1] == '\n') - buffer[--len] = '\0'; UTIL_TrimComments(buffer); UTIL_TrimLeft(buffer); UTIL_TrimRight(buffer);