Do not add separator at the end of string --- server/video-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/video-stream.c b/server/video-stream.c index d22784f5f..6aa859a02 100644 --- a/server/video-stream.c +++ b/server/video-stream.c @@ -987,7 +987,7 @@ char *video_codecs_to_string(GArray *video_codecs, const char *sep) RedVideoCodec codec = g_array_index(video_codecs, RedVideoCodec, i); char *codec_name = reds_get_video_codec_fullname(&codec); - g_string_append_printf(msg, "%s%s", codec_name, sep); + g_string_append_printf(msg, "%s%s", i ? sep : "", codec_name); g_free(codec_name); } -- 2.20.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel