We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello! Some time ago I had a problem with sprintf(), it just didn't change the string variable as it should have. The problem somehow vanished, and I had no time to investigate further... Now I have the same problem again, here's a snippet:
char xdata c [80]; strcpy (c, "Text"); sprintf (c, "%s", "Text2");
sprintf() will certainly need some memory for its "locals," and where it needs this memory is defined by the memory model - LARGE will need space in XDATA. Could you have problems with you overlaying? Check the map file. Are you using function pointers, or any other "cunning tricks" where concurrent calls may not be evident to the linker?