diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/lscript/lscript_library.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/lscript/lscript_library.h')
-rw-r--r-- | linden/indra/lscript/lscript_library.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/lscript/lscript_library.h b/linden/indra/lscript/lscript_library.h index 10ba7fa..458ab25 100644 --- a/linden/indra/lscript/lscript_library.h +++ b/linden/indra/lscript/lscript_library.h | |||
@@ -278,7 +278,7 @@ public: | |||
278 | break; | 278 | break; |
279 | case LST_KEY: | 279 | case LST_KEY: |
280 | { | 280 | { |
281 | bytestream2char(temp, src, offset); | 281 | bytestream2char(temp, src, offset, sizeof(temp)); |
282 | mKey = new char[strlen(temp) + 1]; /* Flawfinder: ignore */ | 282 | mKey = new char[strlen(temp) + 1]; /* Flawfinder: ignore */ |
283 | if (mKey == NULL) | 283 | if (mKey == NULL) |
284 | { | 284 | { |
@@ -290,7 +290,7 @@ public: | |||
290 | break; | 290 | break; |
291 | case LST_STRING: | 291 | case LST_STRING: |
292 | { | 292 | { |
293 | bytestream2char(temp, src, offset); | 293 | bytestream2char(temp, src, offset, sizeof(temp)); |
294 | mString = new char[strlen(temp) + 1]; /* Flawfinder: ignore */ | 294 | mString = new char[strlen(temp) + 1]; /* Flawfinder: ignore */ |
295 | if (mString == NULL) | 295 | if (mString == NULL) |
296 | { | 296 | { |
@@ -327,7 +327,7 @@ public: | |||
327 | break; | 327 | break; |
328 | case LST_KEY: | 328 | case LST_KEY: |
329 | { | 329 | { |
330 | bytestream2char(temp, src, offset); | 330 | bytestream2char(temp, src, offset, sizeof(temp)); |
331 | mKey = new char[strlen(temp) + 1]; /* Flawfinder: ignore */ | 331 | mKey = new char[strlen(temp) + 1]; /* Flawfinder: ignore */ |
332 | if (mKey == NULL) | 332 | if (mKey == NULL) |
333 | { | 333 | { |
@@ -339,7 +339,7 @@ public: | |||
339 | break; | 339 | break; |
340 | case LST_STRING: | 340 | case LST_STRING: |
341 | { | 341 | { |
342 | bytestream2char(temp, src, offset); | 342 | bytestream2char(temp, src, offset, sizeof(temp)); |
343 | mString = new char[strlen(temp) + 1]; /* Flawfinder: ignore */ | 343 | mString = new char[strlen(temp) + 1]; /* Flawfinder: ignore */ |
344 | if (mString == NULL) | 344 | if (mString == NULL) |
345 | { | 345 | { |