Hi,

I've been trying out the latest version of gnucash and have been
getting a segmentation fault when trying the `open subaccounts'
option. I had a bit of a look at it with a debugger and it seems that
there is an inconsistency between the accRes array in RegWindow.c (in
the motif directory) and the macros in splitreg.h as well as problem
of indexing accRes by one index off what is meant to be done.

The following patch seems to fix things. I'm running it under Linux
2.2.1 with the source of gnucash from the latest snapshot from the CVS
tree.

diff -r1.65 RegWindow.c
72d71
<   "regliability"
76a76
>   "regcurrency",
402c402
<         accRes[(ledger->type & REG_TYPE_MASK)]);
---
>         accRes[(ledger->type & REG_TYPE_MASK)-1]);



--
[EMAIL PROTECTED]
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

Reply via email to