From 584cf90bdb5e76f810194657a628173f38d835ff Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Thu, 26 Jul 2012 15:59:14 -0400 Subject: vasprintf -> g_strdup_vprintf --- xombrero.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xombrero.c b/xombrero.c index 0f49f08..439b367 100644 --- a/xombrero.c +++ b/xombrero.c @@ -633,7 +633,7 @@ show_oops(struct tab *at, const char *fmt, ...) t = at; va_start(ap, fmt); - if (vasprintf(&msg, fmt, ap) == -1) + if ((msg = g_strdup_vprintf(fmt, ap)) == NULL) errx(1, "show_oops failed"); va_end(ap); @@ -642,7 +642,7 @@ show_oops(struct tab *at, const char *fmt, ...) gtk_widget_show(t->oops); if (msg) - free(msg); + g_free(msg); } char work_dir[PATH_MAX]; -- cgit 1.4.1-2-gfad0