Oh, and I think you need +2 here. You need space for both the slash AND terminating null.