diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llgesturemgr.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llgesturemgr.cpp')
-rw-r--r-- | linden/indra/newview/llgesturemgr.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/linden/indra/newview/llgesturemgr.cpp b/linden/indra/newview/llgesturemgr.cpp index 8f906d9..76a2ca7 100644 --- a/linden/indra/newview/llgesturemgr.cpp +++ b/linden/indra/newview/llgesturemgr.cpp | |||
@@ -875,7 +875,13 @@ void LLGestureManager::onLoadComplete(LLVFS *vfs, | |||
875 | S32 size = file.getSize(); | 875 | S32 size = file.getSize(); |
876 | 876 | ||
877 | char* buffer = new char[size+1]; | 877 | char* buffer = new char[size+1]; |
878 | file.read((U8*)buffer, size); | 878 | if (buffer == NULL) |
879 | { | ||
880 | llerrs << "Memory Allocation Failed" << llendl; | ||
881 | return; | ||
882 | } | ||
883 | |||
884 | file.read((U8*)buffer, size); /* Flawfinder: ignore */ | ||
879 | // ensure there's a trailing NULL so strlen will work. | 885 | // ensure there's a trailing NULL so strlen will work. |
880 | buffer[size] = '\0'; | 886 | buffer[size] = '\0'; |
881 | 887 | ||