From 517b8a8cb267f9399bd7a1d6712d86f0a3cd7126 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Wed, 1 Nov 2000 11:50:12 +0000 Subject: [PATCH] Minor cleanup. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3109 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/gnc-engine-util.h | 2 -- src/gnc-ui-util.c | 2 +- src/gnc-ui-util.h | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/engine/gnc-engine-util.h b/src/engine/gnc-engine-util.h index f1d3691780..86b37ecc3c 100644 --- a/src/engine/gnc-engine-util.h +++ b/src/engine/gnc-engine-util.h @@ -39,8 +39,6 @@ #include "gnc-commodity.h" #include "gnc-numeric.h" -#define BUFSIZE 1024 - /** DEBUGGING MACROS ************************************************/ /* The debuging macros enable the setting of trace messages */ diff --git a/src/gnc-ui-util.c b/src/gnc-ui-util.c index 2923c601c0..1e6919659d 100644 --- a/src/gnc-ui-util.c +++ b/src/gnc-ui-util.c @@ -632,7 +632,7 @@ const char * DxaccPrintAmount (double val, GNCPrintAmountInfo info) { /* hack alert -- this is not thread safe ... */ - static char buf[BUFSIZE]; + static char buf[1024]; DxaccSPrintAmount (buf, val, info); diff --git a/src/gnc-ui-util.h b/src/gnc-ui-util.h index 6ad00ce153..f1bce9380b 100644 --- a/src/gnc-ui-util.h +++ b/src/gnc-ui-util.h @@ -52,8 +52,8 @@ int gnc_locale_decimal_places(void); /* * The xaccPrintAmount() and xaccSPrintAmount() routines provide * i18n'ed convenience routines for printing gnc_numerics. - * amounts. Both routines take a gnc_numeric argument and an - * printing information object. + * amounts. Both routines take a gnc_numeric argument and + * a printing information object. * * The xaccPrintAmount() routine returns a pointer to a statically * allocated buffer, and is therefore not thread-safe.