Fix buffer overflow vuln in create_spk