> On 20 May 2015, at 17:18, Peter Maydell <peter.mayd...@linaro.org> wrote: > > PS: the glib function g_strjoinv("", null_terminated_string_array) > is probably better than reimplementing the string-concatenation > wheel.
I'm not familiar with g_strjoinv(), but the args concatenate logic should protect args containing spaces with quotes or apostrophes. my concatenate_semihosting_cmdline() does this and I guess it can be used as a starting point if no glib functions providing this functionality are available. regards, Liviu