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/llcommon/u64.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 '')
-rw-r--r-- | linden/indra/llcommon/u64.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/llcommon/u64.cpp b/linden/indra/llcommon/u64.cpp index 45baa13..744e0ab 100644 --- a/linden/indra/llcommon/u64.cpp +++ b/linden/indra/llcommon/u64.cpp | |||
@@ -33,7 +33,7 @@ | |||
33 | U64 str_to_U64(const char *str) | 33 | U64 str_to_U64(const char *str) |
34 | { | 34 | { |
35 | U64 result = 0; | 35 | U64 result = 0; |
36 | char *aptr = strpbrk(str,"0123456789"); | 36 | const char *aptr = strpbrk(str,"0123456789"); |
37 | 37 | ||
38 | if (!aptr) | 38 | if (!aptr) |
39 | { | 39 | { |
@@ -66,27 +66,27 @@ char* U64_to_str(U64 value, char* result, S32 result_size) | |||
66 | 66 | ||
67 | if (part1) | 67 | if (part1) |
68 | { | 68 | { |
69 | snprintf( | 69 | snprintf( /* Flawfinder: ignore */ |
70 | result, | 70 | result, |
71 | result_size, | 71 | result_size, |
72 | "%u%07u%07u", | 72 | "%u%07u%07u", |
73 | part1,part2,part3); /* Flawfinder: ignore */ | 73 | part1,part2,part3); |
74 | } | 74 | } |
75 | else if (part2) | 75 | else if (part2) |
76 | { | 76 | { |
77 | snprintf( | 77 | snprintf( /* Flawfinder: ignore */ |
78 | result, | 78 | result, |
79 | result_size, | 79 | result_size, |
80 | "%u%07u", | 80 | "%u%07u", |
81 | part2,part3); /* Flawfinder: ignore */ | 81 | part2,part3); |
82 | } | 82 | } |
83 | else | 83 | else |
84 | { | 84 | { |
85 | snprintf( | 85 | snprintf( /* Flawfinder: ignore */ |
86 | result, | 86 | result, |
87 | result_size, | 87 | result_size, |
88 | "%u", | 88 | "%u", |
89 | part3); /* Flawfinder: ignore */ | 89 | part3); |
90 | } | 90 | } |
91 | return (result); | 91 | return (result); |
92 | } | 92 | } |