libctd: Prepare erguments for exec before calling it
libctd: Prepare erguments for exec before calling it

When arrived from protobuf, the argv array is not NULL-terminated,
instead we have the n_foo field telling us how much args are there.
The execv() needs NULL at the end, so reshuffle the arguments to
have such.

Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

avagin/libct,hallyn/libct,cyrillos/xemul-libct,LK4D4/libct,LK4D4/libct,xemul/libct,cyrillos/xemul-libct,cyrillos/xemul-libct,avagin/libct,xemul/libct,hallyn/libct,hallyn/libct,cyrillos/xemul-libct,xemul/libct,xemul/libct,LK4D4/libct,avagin/libct