summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorKaren Clark <karen@lindenlab.com>2007-03-01 01:30:10 +0000
committerKaren Clark <karen@lindenlab.com>2007-03-01 01:30:10 +0000
commitb53c377727d216cb277ba14ba4c73b9b9bb96b32 (patch)
tree41e011b4757d7a870374e31fb718a8f90dcc8dfb /indra
parent568bb88470274f65da3af6650af69942a3785a6e (diff)
svn merge -r58425:58426 svn+ssh://svn.lindenlab.com/svn/linden/branches/release-candidate into release
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelgroupnotices.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llpanelgroupnotices.cpp b/indra/newview/llpanelgroupnotices.cpp
index 9f2d9cf909..977f89ffdc 100644
--- a/indra/newview/llpanelgroupnotices.cpp
+++ b/indra/newview/llpanelgroupnotices.cpp
@@ -31,6 +31,8 @@
#include "llviewerwindow.h"
#include "llviewermessage.h"
+const S32 NOTICE_DATE_STRING_SIZE = 30;
+
/////////////////////////
// LLPanelGroupNotices //
/////////////////////////
@@ -162,8 +164,7 @@ char* build_notice_date(const time_t& the_time, char* buffer)
tm* lt = localtime(&t);
//for some reason, the month is off by 1. See other uses of
//"local" time in the code...
- snprintf(buffer, sizeof(buffer), "%i/%i/%i", lt->tm_mon + 1, lt->tm_mday, lt->tm_year + 1900); /*Flawfinder: ignore*/
-
+ snprintf(buffer, NOTICE_DATE_STRING_SIZE, "%i/%i/%i", lt->tm_mon + 1, lt->tm_mday, lt->tm_year + 1900); /*Flawfinder: ignore*/
return buffer;
}
@@ -473,7 +474,7 @@ void LLPanelGroupNotices::processNotices(LLMessageSystem* msg)
row["columns"][2]["column"] = "from";
row["columns"][2]["value"] = name;
- char buffer[30]; /*Flawfinder: ignore*/
+ char buffer[NOTICE_DATE_STRING_SIZE]; /*Flawfinder: ignore*/
build_notice_date(t, buffer);
row["columns"][3]["column"] = "date";
row["columns"][3]["value"] = buffer;