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 b2b54cd..cb9a78e 100644 --- a/linden/indra/lscript/lscript_execute/lscript_execute.cpp +++ b/linden/indra/lscript/lscript_execute/lscript_execute.cpp | |||
@@ -3426,7 +3426,7 @@ BOOL run_cast(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &id) | |||
3426 | case LST_STRING: | 3426 | case LST_STRING: |
3427 | { | 3427 | { |
3428 | S32 address, source = lscript_pop_int(buffer); | 3428 | S32 address, source = lscript_pop_int(buffer); |
3429 | snprintf(caststr, sizeof(caststr), "%d", source); /* Flawfinder: ignore */ | 3429 | ll_snprintf(caststr, sizeof(caststr), "%d", source); /* Flawfinder: ignore */ |
3430 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); | 3430 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); |
3431 | lscript_push(buffer, address); | 3431 | lscript_push(buffer, address); |
3432 | } | 3432 | } |
@@ -3463,7 +3463,7 @@ BOOL run_cast(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &id) | |||
3463 | { | 3463 | { |
3464 | S32 address; | 3464 | S32 address; |
3465 | F32 source = lscript_pop_float(buffer); | 3465 | F32 source = lscript_pop_float(buffer); |
3466 | snprintf(caststr, sizeof(caststr), "%f", source); /* Flawfinder: ignore */ | 3466 | ll_snprintf(caststr, sizeof(caststr), "%f", source); /* Flawfinder: ignore */ |
3467 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); | 3467 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); |
3468 | lscript_push(buffer, address); | 3468 | lscript_push(buffer, address); |
3469 | } | 3469 | } |
@@ -3672,7 +3672,7 @@ BOOL run_cast(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &id) | |||
3672 | S32 address; | 3672 | S32 address; |
3673 | LLVector3 source; | 3673 | LLVector3 source; |
3674 | lscript_pop_vector(buffer, source); | 3674 | lscript_pop_vector(buffer, source); |
3675 | snprintf(caststr, sizeof(caststr), "<%5.5f, %5.5f, %5.5f>", source.mV[VX], source.mV[VY], source.mV[VZ]); /* Flawfinder: ignore */ | 3675 | ll_snprintf(caststr, sizeof(caststr), "<%5.5f, %5.5f, %5.5f>", source.mV[VX], source.mV[VY], source.mV[VZ]); /* Flawfinder: ignore */ |
3676 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); | 3676 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); |
3677 | lscript_push(buffer, address); | 3677 | lscript_push(buffer, address); |
3678 | } | 3678 | } |
@@ -3705,7 +3705,7 @@ BOOL run_cast(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &id) | |||
3705 | S32 address; | 3705 | S32 address; |
3706 | LLQuaternion source; | 3706 | LLQuaternion source; |
3707 | lscript_pop_quaternion(buffer, source); | 3707 | lscript_pop_quaternion(buffer, source); |
3708 | 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 */ | 3708 | 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 */ |
3709 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); | 3709 | address = lsa_heap_add_data(buffer, new LLScriptLibData(caststr), get_max_heap_size(buffer), TRUE); |
3710 | lscript_push(buffer, address); | 3710 | lscript_push(buffer, address); |
3711 | } | 3711 | } |