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/llmessage/llnamevalue.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/llmessage/llnamevalue.cpp')
-rw-r--r-- | linden/indra/llmessage/llnamevalue.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/linden/indra/llmessage/llnamevalue.cpp b/linden/indra/llmessage/llnamevalue.cpp index 0b4f0b6..1304923 100644 --- a/linden/indra/llmessage/llnamevalue.cpp +++ b/linden/indra/llmessage/llnamevalue.cpp | |||
@@ -59,7 +59,7 @@ user_callback_map_t gUserCallbackMap; | |||
59 | 59 | ||
60 | LLStringTable gNVNameTable(16384); | 60 | LLStringTable gNVNameTable(16384); |
61 | 61 | ||
62 | char NameValueTypeStrings[NVT_EOF][NAME_VALUE_TYPE_STRING_LENGTH] = | 62 | char NameValueTypeStrings[NVT_EOF][NAME_VALUE_TYPE_STRING_LENGTH] = /*Flawfinder: Ignore*/ |
63 | { | 63 | { |
64 | "NULL", | 64 | "NULL", |
65 | "STRING", | 65 | "STRING", |
@@ -70,17 +70,17 @@ char NameValueTypeStrings[NVT_EOF][NAME_VALUE_TYPE_STRING_LENGTH] = | |||
70 | "CAMERA", // Deprecated, but leaving in case removing completely would cause problems | 70 | "CAMERA", // Deprecated, but leaving in case removing completely would cause problems |
71 | "ASSET", | 71 | "ASSET", |
72 | "U64" | 72 | "U64" |
73 | }; /*Flawfinder: Ignore*/ | 73 | }; |
74 | 74 | ||
75 | char NameValueClassStrings[NVC_EOF][NAME_VALUE_CLASS_STRING_LENGTH] = | 75 | char NameValueClassStrings[NVC_EOF][NAME_VALUE_CLASS_STRING_LENGTH] = /*Flawfinder: Ignore*/ |
76 | { | 76 | { |
77 | "NULL", | 77 | "NULL", |
78 | "R", // read only | 78 | "R", // read only |
79 | "RW", // read write | 79 | "RW", // read write |
80 | "CB" // callback | 80 | "CB" // callback |
81 | }; /*Flawfinder: Ignore*/ | 81 | }; |
82 | 82 | ||
83 | char NameValueSendtoStrings[NVS_EOF][NAME_VALUE_SENDTO_STRING_LENGTH] = | 83 | char NameValueSendtoStrings[NVS_EOF][NAME_VALUE_SENDTO_STRING_LENGTH] = /*Flawfinder: Ignore*/ |
84 | { | 84 | { |
85 | "NULL", | 85 | "NULL", |
86 | "S", // "Sim", formerly SIM | 86 | "S", // "Sim", formerly SIM |
@@ -412,11 +412,11 @@ LLNameValue::LLNameValue(const char *name, const char *type, const char *nvclass | |||
412 | LLNameValue::LLNameValue(const char *data) | 412 | LLNameValue::LLNameValue(const char *data) |
413 | { | 413 | { |
414 | baseInit(); | 414 | baseInit(); |
415 | static char name[NV_BUFFER_LEN]; | 415 | static char name[NV_BUFFER_LEN]; /*Flawfinder: ignore*/ |
416 | static char type[NV_BUFFER_LEN]; | 416 | static char type[NV_BUFFER_LEN]; /*Flawfinder: ignore*/ |
417 | static char nvclass[NV_BUFFER_LEN]; | 417 | static char nvclass[NV_BUFFER_LEN]; /*Flawfinder: ignore*/ |
418 | static char nvsendto[NV_BUFFER_LEN]; | 418 | static char nvsendto[NV_BUFFER_LEN]; /*Flawfinder: ignore*/ |
419 | static char nvdata[NV_BUFFER_LEN]; | 419 | static char nvdata[NV_BUFFER_LEN]; /*Flawfinder: ignore*/ |
420 | 420 | ||
421 | S32 i; | 421 | S32 i; |
422 | 422 | ||
@@ -440,7 +440,7 @@ LLNameValue::LLNameValue(const char *data) | |||
440 | } | 440 | } |
441 | 441 | ||
442 | // read in the name | 442 | // read in the name |
443 | sscanf((data + character_count), "%2047s", name); | 443 | sscanf((data + character_count), "%2047s", name); /*Flawfinder: ignore*/ |
444 | 444 | ||
445 | // bump past it and add null terminator | 445 | // bump past it and add null terminator |
446 | length = (S32)strlen(name); /* Flawfinder: ignore */ | 446 | length = (S32)strlen(name); /* Flawfinder: ignore */ |
@@ -464,7 +464,7 @@ LLNameValue::LLNameValue(const char *data) | |||
464 | } | 464 | } |
465 | 465 | ||
466 | // read in the type | 466 | // read in the type |
467 | sscanf((data + character_count), "%2047s", type); | 467 | sscanf((data + character_count), "%2047s", type); /*Flawfinder: ignore*/ |
468 | 468 | ||
469 | // bump past it and add null terminator | 469 | // bump past it and add null terminator |
470 | length = (S32)strlen(type); /* Flawfinder: ignore */ | 470 | length = (S32)strlen(type); /* Flawfinder: ignore */ |
@@ -500,7 +500,7 @@ LLNameValue::LLNameValue(const char *data) | |||
500 | { | 500 | { |
501 | // yes we do! | 501 | // yes we do! |
502 | // read in the class | 502 | // read in the class |
503 | sscanf((data + character_count), "%2047s", nvclass); | 503 | sscanf((data + character_count), "%2047s", nvclass); /*Flawfinder: ignore*/ |
504 | 504 | ||
505 | // bump past it and add null terminator | 505 | // bump past it and add null terminator |
506 | length = (S32)strlen(nvclass); /* Flawfinder: ignore */ | 506 | length = (S32)strlen(nvclass); /* Flawfinder: ignore */ |
@@ -542,7 +542,7 @@ LLNameValue::LLNameValue(const char *data) | |||
542 | if (i != NVS_EOF) | 542 | if (i != NVS_EOF) |
543 | { | 543 | { |
544 | // found a sendto argument | 544 | // found a sendto argument |
545 | sscanf((data + character_count), "%2047s", nvsendto); | 545 | sscanf((data + character_count), "%2047s", nvsendto); /*Flawfinder: ignore*/ |
546 | 546 | ||
547 | // add null terminator | 547 | // add null terminator |
548 | length = (S32)strlen(nvsendto); /* Flawfinder: ignore */ | 548 | length = (S32)strlen(nvsendto); /* Flawfinder: ignore */ |