mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Avoid over-ranging string storage.
Found by clang static analyzer.
This commit is contained in:
parent
7283c86f6f
commit
7e10b05c49
@ -248,7 +248,7 @@ Account * gnc_import_select_account(GtkWidget *parent,
|
||||
const gchar *retval_name = NULL;
|
||||
GtkBuilder *builder;
|
||||
GtkWidget * online_id_label, *box, *pbox;
|
||||
gchar account_description_text[ACCOUNT_DESCRIPTION_MAX_SIZE] = "";
|
||||
gchar account_description_text[ACCOUNT_DESCRIPTION_MAX_SIZE + 1] = "";
|
||||
gboolean ok_pressed_retval = FALSE;
|
||||
|
||||
ENTER("Default commodity received: %s", gnc_commodity_get_fullname( new_account_default_commodity));
|
||||
@ -496,7 +496,7 @@ Account * gnc_import_account_assist_update (AccountPickerDialog *picker)
|
||||
#define ACCOUNT_DESCRIPTION_MAX_SIZE 255
|
||||
|
||||
const gchar *retval_name = NULL;
|
||||
gchar account_description_text[ACCOUNT_DESCRIPTION_MAX_SIZE] = "";
|
||||
gchar account_description_text[ACCOUNT_DESCRIPTION_MAX_SIZE + 1] = "";
|
||||
|
||||
ENTER("Default commodity received: %s", gnc_commodity_get_fullname( picker->new_account_default_commodity));
|
||||
DEBUG("Default account type received: %s", xaccAccountGetTypeStr( picker->new_account_default_type));
|
||||
|
Loading…
Reference in New Issue
Block a user