summaryrefslogtreecommitdiff
path: root/src/universal-cp
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2021-06-22 10:29:08 +0200
committerJens Georg <mail@jensge.org>2021-06-22 10:29:13 +0200
commitd738baae3bffaf6a8dfc12f5fe1ea13168fe2e48 (patch)
tree5446cbab18edf42d93328ad365d7b9d4ed96369b /src/universal-cp
parent97f607c268fdf88f863c82ba97fc695df88f0979 (diff)
downloadgupnp-tools-d738baae3bffaf6a8dfc12f5fe1ea13168fe2e48.tar.gz
universal-cp: Fix missing format string
Fixes #20
Diffstat (limited to 'src/universal-cp')
-rw-r--r--src/universal-cp/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/universal-cp/main.c b/src/universal-cp/main.c
index b6557c8..ce6e9b3 100644
--- a/src/universal-cp/main.c
+++ b/src/universal-cp/main.c
@@ -70,11 +70,10 @@ parse_uda_version (const gchar *option_name,
} else if (g_str_equal (value, "1.1")) {
uda_version = GSSDP_UDA_VERSION_1_1;
} else {
- char *msg = g_strconcat ("Invalid UDA version: ", value, NULL);
g_set_error (error,
G_IO_ERROR,
G_IO_ERROR_INVALID_ARGUMENT,
- msg);
+ "Invalid UDA version: %s", value);
g_free (msg);
return FALSE;