aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/mean_collision_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/mean_collision_data.h')
-rw-r--r--linden/indra/llmessage/mean_collision_data.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/linden/indra/llmessage/mean_collision_data.h b/linden/indra/llmessage/mean_collision_data.h
index 1f245f9..0f09c3e 100644
--- a/linden/indra/llmessage/mean_collision_data.h
+++ b/linden/indra/llmessage/mean_collision_data.h
@@ -55,15 +55,13 @@ class LLMeanCollisionData
55public: 55public:
56 LLMeanCollisionData(const LLUUID &victim, const LLUUID &perp, time_t time, EMeanCollisionType type, F32 mag) 56 LLMeanCollisionData(const LLUUID &victim, const LLUUID &perp, time_t time, EMeanCollisionType type, F32 mag)
57 : mVictim(victim), mPerp(perp), mTime(time), mType(type), mMag(mag) 57 : mVictim(victim), mPerp(perp), mTime(time), mType(type), mMag(mag)
58 { mFirstName[0] = 0; mLastName[0] = 0; } 58 {
59 }
59 60
60 LLMeanCollisionData(LLMeanCollisionData *mcd) 61 LLMeanCollisionData(LLMeanCollisionData *mcd)
61 : mVictim(mcd->mVictim), mPerp(mcd->mPerp), mTime(mcd->mTime), mType(mcd->mType), mMag(mcd->mMag) 62 : mVictim(mcd->mVictim), mPerp(mcd->mPerp), mTime(mcd->mTime), mType(mcd->mType), mMag(mcd->mMag),
62 { 63 mFirstName(mcd->mFirstName), mLastName(mcd->mLastName)
63 strncpy(mFirstName, mcd->mFirstName, sizeof(mFirstName) -1); /* Flawfinder: Ignore */ 64 {
64 mFirstName[sizeof(mFirstName) -1] = '\0';
65 strncpy(mLastName, mcd->mLastName, sizeof(mLastName) -1); /* Flawfinder: Ignore */
66 mLastName[sizeof(mLastName) -1] = '\0';
67 } 65 }
68 66
69 friend std::ostream& operator<<(std::ostream& s, const LLMeanCollisionData &a) 67 friend std::ostream& operator<<(std::ostream& s, const LLMeanCollisionData &a)
@@ -96,8 +94,8 @@ public:
96 time_t mTime; 94 time_t mTime;
97 EMeanCollisionType mType; 95 EMeanCollisionType mType;
98 F32 mMag; 96 F32 mMag;
99 char mFirstName[DB_FIRST_NAME_BUF_SIZE]; /* Flawfinder: Ignore */ 97 std::string mFirstName;
100 char mLastName[DB_LAST_NAME_BUF_SIZE]; /* Flawfinder: Ignore */ 98 std::string mLastName;
101}; 99};
102 100
103 101