Hi all. I seem to be having a problem here and I was hoping maybe somebody could lead me in the right direction. I am working on an inheritance program for school. Well, my code compiles right and it looks good but I made the mistake of using sprintf_s. So when I go to run it, I get error saying my buffer is too small. I don't want to mess with the buffer and all that if I don't have to. Is there any other alternative? Preferably one that won't change my code completely? It would be awesome if I could just go in and change that one word without having to change everything else.This is the only place I used this in. Please tell me I am not rewritting this whole thing!Code:if (intMinute < 10) { sprintf_s(charBuf, "0%d", intMinute); } else { sprintf_s(charBuf, "%d", intMinute); } strMinute += charBuf;