mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Pass better size parameter to qof_strftime() to make use of whole buffer.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17005 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
5d71a32820
commit
a53fecde93
@ -1395,10 +1395,10 @@ gnc_dow_abbrev(gchar *buf, int buf_len, int dow)
|
||||
{
|
||||
struct tm my_tm;
|
||||
int i;
|
||||
|
||||
|
||||
memset(buf, 0, buf_len);
|
||||
memset(&my_tm, 0, sizeof(struct tm));
|
||||
my_tm.tm_wday = dow;
|
||||
i = qof_strftime(buf, buf_len - 1, "%a", &my_tm);
|
||||
i = qof_strftime(buf, buf_len, "%a", &my_tm);
|
||||
buf[i] = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user