Skip to content
Snippets Groups Projects
Commit b53c3777 authored by Karen Clark's avatar Karen Clark
Browse files

svn merge -r58425:58426...

parent 568bb884
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include "llviewerwindow.h" #include "llviewerwindow.h"
#include "llviewermessage.h" #include "llviewermessage.h"
const S32 NOTICE_DATE_STRING_SIZE = 30;
///////////////////////// /////////////////////////
// LLPanelGroupNotices // // LLPanelGroupNotices //
///////////////////////// /////////////////////////
...@@ -162,8 +164,7 @@ char* build_notice_date(const time_t& the_time, char* buffer) ...@@ -162,8 +164,7 @@ char* build_notice_date(const time_t& the_time, char* buffer)
tm* lt = localtime(&t); tm* lt = localtime(&t);
//for some reason, the month is off by 1. See other uses of //for some reason, the month is off by 1. See other uses of
//"local" time in the code... //"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; return buffer;
} }
...@@ -473,7 +474,7 @@ void LLPanelGroupNotices::processNotices(LLMessageSystem* msg) ...@@ -473,7 +474,7 @@ void LLPanelGroupNotices::processNotices(LLMessageSystem* msg)
row["columns"][2]["column"] = "from"; row["columns"][2]["column"] = "from";
row["columns"][2]["value"] = name; row["columns"][2]["value"] = name;
char buffer[30]; /*Flawfinder: ignore*/ char buffer[NOTICE_DATE_STRING_SIZE]; /*Flawfinder: ignore*/
build_notice_date(t, buffer); build_notice_date(t, buffer);
row["columns"][3]["column"] = "date"; row["columns"][3]["column"] = "date";
row["columns"][3]["value"] = buffer; row["columns"][3]["value"] = buffer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment