diff options
Diffstat (limited to 'linden/indra/newview/llpanelevent.cpp')
-rw-r--r-- | linden/indra/newview/llpanelevent.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llpanelevent.cpp b/linden/indra/newview/llpanelevent.cpp index 498d4fc..9478ea2 100644 --- a/linden/indra/newview/llpanelevent.cpp +++ b/linden/indra/newview/llpanelevent.cpp | |||
@@ -166,7 +166,7 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **) | |||
166 | { | 166 | { |
167 | continue; | 167 | continue; |
168 | } | 168 | } |
169 | char buffer[256]; | 169 | char buffer[256]; /*Flawfinder: ignore*/ |
170 | 170 | ||
171 | self->mEventInfo.unpack(msg); | 171 | self->mEventInfo.unpack(msg); |
172 | self->mTBName->setText(self->mEventInfo.mName); | 172 | self->mTBName->setText(self->mEventInfo.mName); |
@@ -174,7 +174,7 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **) | |||
174 | self->mTBDate->setText(self->mEventInfo.mTimeStr); | 174 | self->mTBDate->setText(self->mEventInfo.mTimeStr); |
175 | self->mTBDesc->setText(self->mEventInfo.mDesc); | 175 | self->mTBDesc->setText(self->mEventInfo.mDesc); |
176 | 176 | ||
177 | sprintf(buffer, "%d:%.2d", self->mEventInfo.mDuration / 60, self->mEventInfo.mDuration % 60); | 177 | snprintf(buffer, sizeof(buffer), "%d:%.2d", self->mEventInfo.mDuration / 60, self->mEventInfo.mDuration % 60); /*Flawfinder: ignore*/ |
178 | 178 | ||
179 | self->mTBDuration->setText(buffer); | 179 | self->mTBDuration->setText(buffer); |
180 | 180 | ||
@@ -184,7 +184,7 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **) | |||
184 | } | 184 | } |
185 | else | 185 | else |
186 | { | 186 | { |
187 | sprintf(buffer, "%d", self->mEventInfo.mCover); | 187 | snprintf(buffer, sizeof(buffer), "%d", self->mEventInfo.mCover); /*Flawfinder: ignore*/ |
188 | self->mTBCover->setText(buffer); | 188 | self->mTBCover->setText(buffer); |
189 | } | 189 | } |
190 | 190 | ||
@@ -195,7 +195,7 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **) | |||
195 | S32 region_y = llround(global_y) % REGION_WIDTH_UNITS; | 195 | S32 region_y = llround(global_y) % REGION_WIDTH_UNITS; |
196 | S32 region_z = llround((F32)self->mEventInfo.mPosGlobal.mdV[VZ]); | 196 | S32 region_z = llround((F32)self->mEventInfo.mPosGlobal.mdV[VZ]); |
197 | 197 | ||
198 | sprintf(buffer, "%s (%d, %d, %d)", self->mEventInfo.mSimName.c_str(), region_x, region_y, region_z); | 198 | snprintf(buffer, sizeof(buffer), "%s (%d, %d, %d)", self->mEventInfo.mSimName.c_str(), region_x, region_y, region_z); /*Flawfinder: ignore*/ |
199 | self->mTBLocation->setText(buffer); | 199 | self->mTBLocation->setText(buffer); |
200 | 200 | ||
201 | if (self->mEventInfo.mEventFlags & EVENT_FLAG_MATURE) | 201 | if (self->mEventInfo.mEventFlags & EVENT_FLAG_MATURE) |
@@ -232,8 +232,8 @@ void LLPanelEvent::processEventInfoReply(LLMessageSystem *msg, void **) | |||
232 | 232 | ||
233 | void LLPanelEvent::draw() | 233 | void LLPanelEvent::draw() |
234 | { | 234 | { |
235 | char firstname[DB_FIRST_NAME_BUF_SIZE]; | 235 | char firstname[DB_FIRST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ |
236 | char lastname[DB_LAST_NAME_BUF_SIZE]; | 236 | char lastname[DB_LAST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ |
237 | gCacheName->getName(mEventInfo.mRunByID, firstname, lastname); | 237 | gCacheName->getName(mEventInfo.mRunByID, firstname, lastname); |
238 | 238 | ||
239 | LLString name; | 239 | LLString name; |