Increase the clock report's time string's buffer...

...to fifteen characters so that the twelve-hour stuff works for CJKV;
allow more text in the clock.
This commit is contained in:
Steven Panek 2011-10-07 05:43:30 +00:00
parent 5cf1a98670
commit d92c37dfec
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@
id=report_timeout
font_size={FONT_SMALL_SIZE}
ref=time-icon
rect="+0,=,+60,+20"
rect="+0,=,+65,+20"
xanchor=fixed
yanchor=fixed
[/report_countdown]

View file

@ -1218,8 +1218,8 @@ REPORT_GENERATOR(report_clock)
time_t t = std::time(NULL);
struct tm *lt = std::localtime(&t);
if (!lt) return report();
char temp[10];
size_t s = std::strftime(temp, 10,
char temp[15];
size_t s = std::strftime(temp, 15,
(preferences::use_twelve_hour_clock_format() ? _("%I:%M %p") : _("%H:%M")),
lt);
return s ? text_report(temp) : report();