Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKissaki <kissaki@gmx.de>2013-11-26 21:51:56 +0400
committerKissaki <kissaki@gmx.de>2013-11-26 21:51:56 +0400
commit80a9350309406059a6248936ee61f3f7593b18b7 (patch)
treed873672369d733849ad7ccd0adc3886bda115118 /overlay
parentcd4e8350a5d2b128197804e02d7c711d11b6e72a (diff)
Overlay: Code improvements
* Use ARRAY_NUM_ELEMENTS(array) instead of constant
Diffstat (limited to 'overlay')
-rw-r--r--overlay/lib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay/lib.cpp b/overlay/lib.cpp
index 1a53b3297..039809f34 100644
--- a/overlay/lib.cpp
+++ b/overlay/lib.cpp
@@ -752,7 +752,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID) {
GetModuleFileNameA(NULL, procname, ARRAY_NUM_ELEMENTS(procname));
// Fix for windows XP; on length nSize does not include null-termination
// @see http://msdn.microsoft.com/en-us/library/windows/desktop/ms683197%28v=vs.85%29.aspx
- procname[PROCNAMEFILEPATH_BUFLEN - 1] = '\0';
+ procname[ARRAY_NUM_ELEMENTS(procname) - 1] = '\0';
switch (fdwReason) {
case DLL_PROCESS_ATTACH: