Original Post
sorry my question might be stupid to you, but i really want to know a confident answer: char buffer[256]; . . . //buffer now contain string "Empty" let say. sprintf(buffer, "[ %s ]", buffer); <-- will this cause problem? I hope in final, buffer = "[ Empty ]". I cant show my code, because it is too long. And my program always got unpredictable bugs that very hard to reproduce. I checked my code, I suspect this sprintf might cause problem, but i dont sure, please help. Thanks in advance. regards, Martin