about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-26 15:59:14 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-26 15:59:14 -0400
commit584cf90bdb5e76f810194657a628173f38d835ff (patch)
tree63f6c72e52a373f1a545eb3c328cb6ccffc6e55f
parentd1d38bdc14f139a42fce365e622ec362fa374b10 (diff)
downloadxombrero-584cf90bdb5e76f810194657a628173f38d835ff.tar.gz
vasprintf -> g_strdup_vprintf
-rw-r--r--xombrero.c4
1 files 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];