AUDIT: r16766 - gnucash/trunk/src/app-utils - Correctly size the GUID string buffer; should resolve 2.2.2 SX crashes.
Josh Sled
jsled at cvs.gnucash.org
Sat Dec 29 17:36:07 EST 2007
Author: jsled
Date: 2007-12-29 17:36:07 -0500 (Sat, 29 Dec 2007)
New Revision: 16766
Trac: http://svn.gnucash.org/trac/changeset/16766
Modified:
gnucash/trunk/src/app-utils/gnc-sx-instance-model.c
Log:
Correctly size the GUID string buffer; should resolve 2.2.2 SX crashes.
BP
Modified: gnucash/trunk/src/app-utils/gnc-sx-instance-model.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-sx-instance-model.c 2007-12-29 20:28:09 UTC (rev 16765)
+++ gnucash/trunk/src/app-utils/gnc-sx-instance-model.c 2007-12-29 22:36:07 UTC (rev 16766)
@@ -261,7 +261,7 @@
gnc_sx_get_template_transaction_account(SchedXaction *sx)
{
Account *template_root, *sx_template_acct;
- char sx_guid_str[GUID_ENCODING_LENGTH];
+ char sx_guid_str[GUID_ENCODING_LENGTH+1];
template_root = gnc_book_get_template_root(gnc_get_current_book());
guid_to_string_buff(xaccSchedXactionGetGUID(sx), sx_guid_str);
@@ -923,7 +923,7 @@
*split_acct = xaccAccountLookup(acct_guid, gnc_get_current_book());
if (*split_acct == NULL)
{
- char guid_str[GUID_ENCODING_LENGTH];
+ char guid_str[GUID_ENCODING_LENGTH+1];
GString *err;
guid_to_string_buff((const GUID*)acct_guid, guid_str);
err = g_string_new("");
More information about the gnucash-changes
mailing list