sprintf results undefined when using the same buffer for target & source

(switch to QString)