From: mdw Date: Fri, 21 May 1999 22:09:19 +0000 (+0000) Subject: Take advantage of new dynamic string macros. X-Git-Tag: 1.1.0~3 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mgLib/commitdiff_plain/084b2d62d4a490ffb2b9a7d3c76462a69b7e5e01 Take advantage of new dynamic string macros. --- diff --git a/msg.c b/msg.c index eb386e1..d9be0ca 100644 --- a/msg.c +++ b/msg.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: msg.c,v 1.6 1999/05/06 19:51:48 mdw Exp $ + * $Id: msg.c,v 1.7 1999/05/21 22:08:20 mdw Exp $ * * Display a message and get an answer * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: msg.c,v $ + * Revision 1.7 1999/05/21 22:08:20 mdw + * Take advantage of new dynamic string macros. + * * Revision 1.6 1999/05/06 19:51:48 mdw * Reformatted the LGPL notice a little bit. * @@ -122,11 +125,10 @@ int msg(const char *buttons, const char *msg, ...) /* --- Set up the message string --- */ { - dstr d; + dstr d = DSTR_INIT; va_list ap; va_start(ap, msg); - dstr_create(&d); dstr_vputf(&d, msg, ap); va_end(ap); w = gtk_label_new(d.buf);