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/llmath/v3color.h | |
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/llmath/v3color.h')
-rw-r--r-- | linden/indra/llmath/v3color.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/llmath/v3color.h b/linden/indra/llmath/v3color.h index 606a810..06a94db 100644 --- a/linden/indra/llmath/v3color.h +++ b/linden/indra/llmath/v3color.h | |||
@@ -166,7 +166,7 @@ inline LLColor3::LLColor3(const F32 *vec) | |||
166 | 166 | ||
167 | inline LLColor3::LLColor3(char* color_string) // takes a string of format "RRGGBB" where RR is hex 00..FF | 167 | inline LLColor3::LLColor3(char* color_string) // takes a string of format "RRGGBB" where RR is hex 00..FF |
168 | { | 168 | { |
169 | if (strlen(color_string) < 6) | 169 | if (strlen(color_string) < 6) /* Flawfinder: ignore */ |
170 | { | 170 | { |
171 | mV[0] = 0.f; | 171 | mV[0] = 0.f; |
172 | mV[1] = 0.f; | 172 | mV[1] = 0.f; |
@@ -174,8 +174,8 @@ inline LLColor3::LLColor3(char* color_string) // takes a string of format "RRGGB | |||
174 | return; | 174 | return; |
175 | } | 175 | } |
176 | 176 | ||
177 | static char tempstr[7]; | 177 | static char tempstr[7]; /* Flawfinder: ignore */ |
178 | strncpy(tempstr,color_string,6); | 178 | strncpy(tempstr,color_string,6); /* Flawfinder: ignore */ |
179 | tempstr[6] = '\0'; | 179 | tempstr[6] = '\0'; |
180 | mV[VZ] = (F32)strtol(&tempstr[4],NULL,16)/255.f; | 180 | mV[VZ] = (F32)strtol(&tempstr[4],NULL,16)/255.f; |
181 | tempstr[4] = '\0'; | 181 | tempstr[4] = '\0'; |