diff --git a/src/gnome-utils/window-main-summarybar.c b/src/gnome-utils/window-main-summarybar.c index e28d967..d92c185 100644 --- a/src/gnome-utils/window-main-summarybar.c +++ b/src/gnome-utils/window-main-summarybar.c @@ -388,7 +388,6 @@ gnc_main_window_summary_refresh (GNCMainSummary * summary) { GtkTreeIter iter; - char asset_amount_string[256], profit_amount_string[256]; struct lconv *lc; lc = gnc_localeconv(); @@ -411,12 +410,12 @@ gnc_main_window_summary_refresh (GNCMainSummary * summary) mnemonic = ""; *asset_string= '\0'; - xaccSPrintAmount(asset_amount_string, + xaccSPrintAmount(asset_string, currency_accum->assets, gnc_commodity_print_info(currency_accum->currency, TRUE)); *profit_string= '\0'; - xaccSPrintAmount(profit_amount_string, + xaccSPrintAmount(profit_string, currency_accum->profits, gnc_commodity_print_info(currency_accum->currency, TRUE)); @@ -425,9 +424,9 @@ gnc_main_window_summary_refresh (GNCMainSummary * summary) gtk_list_store_set(summary->datamodel, &iter, COLUMN_MNEMONIC_TYPE, total_mode_label, COLUMN_ASSETS, _("Assets:"), - COLUMN_ASSETS_VALUE, asset_amount_string, + COLUMN_ASSETS_VALUE, asset_string, COLUMN_PROFITS, _("Profits:"), - COLUMN_PROFITS_VALUE, profit_amount_string, + COLUMN_PROFITS_VALUE, profit_string, -1); g_free(total_mode_label); }