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:
Andreas Köhler 2008-03-04 00:20:07 +00:00
parent 5d71a32820
commit a53fecde93

View File

@ -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;
}