diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llvfs/lldir_linux.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/llvfs/lldir_linux.cpp b/linden/indra/llvfs/lldir_linux.cpp index f46ccf2..e3aada6 100644 --- a/linden/indra/llvfs/lldir_linux.cpp +++ b/linden/indra/llvfs/lldir_linux.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | 5 | * Copyright (c) 2002-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -90,7 +91,7 @@ LLDir_Linux::LLDir_Linux() | |||
90 | // *NOTE: /proc/%d/exe doesn't work on FreeBSD. But that's ok, | 91 | // *NOTE: /proc/%d/exe doesn't work on FreeBSD. But that's ok, |
91 | // because this is the linux implementation. | 92 | // because this is the linux implementation. |
92 | 93 | ||
93 | snprintf (path, sizeof(path), "/proc/%d/exe", (int) getpid ()); /* Flawfinder: ignore */ | 94 | snprintf (path, sizeof(path), "/proc/%d/exe", (int) getpid ()); |
94 | int rc = readlink (path, tmp_str, sizeof (tmp_str)-1); /* Flawfinder: ignore */ | 95 | int rc = readlink (path, tmp_str, sizeof (tmp_str)-1); /* Flawfinder: ignore */ |
95 | if ( (rc != -1) && (rc <= ((int) sizeof (tmp_str)-1)) ) | 96 | if ( (rc != -1) && (rc <= ((int) sizeof (tmp_str)-1)) ) |
96 | { | 97 | { |