diff options
Diffstat (limited to 'linden/indra/lscript/lscript_execute/lscript_execute.cpp')
-rw-r--r-- | linden/indra/lscript/lscript_execute/lscript_execute.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/lscript/lscript_execute/lscript_execute.cpp b/linden/indra/lscript/lscript_execute/lscript_execute.cpp index 7af407f..7da5e51 100644 --- a/linden/indra/lscript/lscript_execute/lscript_execute.cpp +++ b/linden/indra/lscript/lscript_execute/lscript_execute.cpp | |||
@@ -3417,7 +3417,7 @@ BOOL run_cast(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &id) | |||
3417 | case LST_STRING: | 3417 | case LST_STRING: |
3418 | { | 3418 | { |
3419 | S32 address, source = lscript_pop_int(buffer); | 3419 | S32 address, source = lscript_pop_int(buffer); |
3420 | snprintf(caststr, sizeof(caststr), "%d", source); /* Flawfinder: ignore */ | 3420 | ll_snprintf(caststr, sizeof(caststr), "%d", source); /* Flawfinder: ignore */ |
3421 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); | 3421 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); |
3422 | lscript_push(buffer, address); | 3422 | lscript_push(buffer, address); |
3423 | } | 3423 | } |
@@ -3454,7 +3454,7 @@ BOOL run_cast(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &id) | |||
3454 | { | 3454 | { |
3455 | S32 address; | 3455 | S32 address; |
3456 | F32 source = lscript_pop_float(buffer); | 3456 | F32 source = lscript_pop_float(buffer); |
3457 | snprintf(caststr, sizeof(caststr), "%f", source); /* Flawfinder: ignore */ | 3457 | ll_snprintf(caststr, sizeof(caststr), "%f", source); /* Flawfinder: ignore */ |
3458 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); | 3458 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); |
3459 | lscript_push(buffer, address); | 3459 | lscript_push(buffer, address); |
3460 | } | 3460 | } |
@@ -3663,7 +3663,7 @@ BOOL run_cast(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &id) | |||
3663 | S32 address; | 3663 | S32 address; |
3664 | LLVector3 source; | 3664 | LLVector3 source; |
3665 | lscript_pop_vector(buffer, source); | 3665 | lscript_pop_vector(buffer, source); |
3666 | snprintf(caststr, sizeof(caststr), "<%5.5f, %5.5f, %5.5f>", source.mV[VX], source.mV[VY], source.mV[VZ]); /* Flawfinder: ignore */ | 3666 | ll_snprintf(caststr, sizeof(caststr), "<%5.5f, %5.5f, %5.5f>", source.mV[VX], source.mV[VY], source.mV[VZ]); /* Flawfinder: ignore */ |
3667 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); | 3667 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); |
3668 | lscript_push(buffer, address); | 3668 | lscript_push(buffer, address); |
3669 | } | 3669 | } |
@@ -3696,7 +3696,7 @@ BOOL run_cast(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &id) | |||
3696 | S32 address; | 3696 | S32 address; |
3697 | LLQuaternion source; | 3697 | LLQuaternion source; |
3698 | lscript_pop_quaternion(buffer, source); | 3698 | lscript_pop_quaternion(buffer, source); |
3699 | snprintf(caststr, sizeof(caststr), "<%5.5f, %5.5f, %5.5f, %5.5f>", source.mQ[VX], source.mQ[VY], source.mQ[VZ], source.mQ[VS]); /* Flawfinder: ignore */ | 3699 | ll_snprintf(caststr, sizeof(caststr), "<%5.5f, %5.5f, %5.5f, %5.5f>", source.mQ[VX], source.mQ[VY], source.mQ[VZ], source.mQ[VS]); /* Flawfinder: ignore */ |
3700 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); | 3700 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); |
3701 | lscript_push(buffer, address); | 3701 | lscript_push(buffer, address); |
3702 | } | 3702 | } |