summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-simulation/secondlife/files/secondlife-1.23_rc5-fix-memset-error.patch')
-rw-r--r--games-simulation/secondlife/files/secondlife-1.23_rc5-fix-memset-error.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/games-simulation/secondlife/files/secondlife-1.23_rc5-fix-memset-error.patch b/games-simulation/secondlife/files/secondlife-1.23_rc5-fix-memset-error.patch
new file mode 100644
index 000000000000..edff470da052
--- /dev/null
+++ b/games-simulation/secondlife/files/secondlife-1.23_rc5-fix-memset-error.patch
@@ -0,0 +1,12 @@
+--- linden/indra/llmessage/lltemplatemessagereader.cpp~ 2009-05-20 15:26:15.000000000 -0600
++++ linden/indra/llmessage/lltemplatemessagereader.cpp 2009-05-25 21:56:50.000000000 -0600
+@@ -676,8 +676,7 @@
+
+ // default to 0s.
+ U32 size = mvci.getSize();
+- std::vector<U8> data(size);
+- memset(&(data[0]), 0, size);
++ std::vector<U8> data(size, 0);
+ cur_data_block->addData(mvci.getName(), &(data[0]),
+ size, mvci.getType());
+ }