From 7cbcc099efa9fd5f4334f564c38abfc734db6ffd Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 8 Sep 2003 17:30:55 +0000 Subject: [PATCH] some simpler code --- openbox/client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openbox/client.c b/openbox/client.c index aec05d6f..83ced010 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1336,10 +1336,8 @@ void client_update_title(ObClient *self) } /* dont display the number for the first window */ if (self->title_count > 1) { - char *vdata, *ndata; - ndata = g_strdup_printf(" - [%u]", self->title_count); - vdata = g_strconcat(data, ndata, NULL); - g_free(ndata); + char *ndata; + ndata = g_strdup_printf("%s - [%u]", data, self->title_count); g_free(data); data = vdata; } -- 2.45.2