chiark / gitweb /
Take advantage of new dynamic string macros.
authormdw <mdw>
Fri, 21 May 1999 22:09:19 +0000 (22:09 +0000)
committermdw <mdw>
Fri, 21 May 1999 22:09:19 +0000 (22:09 +0000)
msg.c

diff --git a/msg.c b/msg.c
index eb386e1428488480f1e7962bf60aa14237a0ce10..d9be0ca04037ef54acc2863890801178706275df 100644 (file)
--- 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);