Skip to content

Commit

Permalink
increase buffer size proposal date (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex v committed Apr 24, 2019
1 parent 4041e3e commit 8072efb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/qt/communityfunddisplaydetailed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void CommunityFundDisplayDetailed::setProposalLabels() const
std::string expiry_title = "Rejected on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
char buf[24];
char buf[48];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelExpiresInTitle->setText(QString::fromStdString(expiry_title));
Expand All @@ -120,7 +120,7 @@ void CommunityFundDisplayDetailed::setProposalLabels() const
std::string expiry_title = "Expired on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
char buf[24];
char buf[48];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelExpiresInTitle->setText(QString::fromStdString(expiry_title));
Expand Down
6 changes: 3 additions & 3 deletions src/qt/communityfunddisplaypaymentrequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void CommunityFundDisplayPaymentRequest::refresh()
std::string duration_title = "Accepted on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
char buf[24];
char buf[48];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelTitleDuration->setText(QString::fromStdString(duration_title));
Expand All @@ -103,7 +103,7 @@ void CommunityFundDisplayPaymentRequest::refresh()
std::string expiry_title = "Rejected on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
char buf[24];
char buf[48];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelTitleDuration->setText(QString::fromStdString(expiry_title));
Expand All @@ -118,7 +118,7 @@ void CommunityFundDisplayPaymentRequest::refresh()
std::string expiry_title = "Expired on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
char buf[24];
char buf[48];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelTitleDuration->setText(QString::fromStdString(expiry_title));
Expand Down
6 changes: 3 additions & 3 deletions src/qt/communityfunddisplaypaymentrequestdetailed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void CommunityFundDisplayPaymentRequestDetailed::setPrequestLabels() const
std::string duration_title = "Accepted on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
char buf[24];
char buf[48];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelPrequestExpiryTitle->setText(QString::fromStdString(duration_title));
Expand All @@ -137,7 +137,7 @@ void CommunityFundDisplayPaymentRequestDetailed::setPrequestLabels() const
std::string expiry_title = "Rejected on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
char buf[24];
char buf[48];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelPrequestExpiryTitle->setText(QString::fromStdString(expiry_title));
Expand All @@ -150,7 +150,7 @@ void CommunityFundDisplayPaymentRequestDetailed::setPrequestLabels() const
std::string expiry_title = "Expired on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
char buf[24];
char buf[48];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelPrequestExpiryTitle->setText(QString::fromStdString(expiry_title));
Expand Down

0 comments on commit 8072efb

Please sign in to comment.