Minor work.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2270 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2000-05-07 08:18:08 +00:00
parent 95ab8965d0
commit f620ffd658
2 changed files with 8 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
2000-05-07 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/gnome/window-register.c (deleteCB): use g_strdup_printf
instead of asprintf.
2000-05-06 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/engine/Query.c: g_list_sort *returns* the new first node.

View File

@@ -2197,15 +2197,13 @@ deleteCB(GtkWidget *widget, gpointer data)
if (cursor_type == CURSOR_SPLIT)
{
/* ask for user confirmation before performing permanent damage */
asprintf(&buf, TRANS_DEL_MSG, xaccSplitGetMemo(split),
xaccTransGetDescription(trans));
assert(buf != NULL);
buf = g_strdup_printf(TRANS_DEL_MSG, xaccSplitGetMemo(split),
xaccTransGetDescription(trans));
result = gnc_verify_dialog_parented(GTK_WINDOW(regData->window),
buf, GNC_F);
free(buf);
g_free(buf);
if (!result)
return;