Hi,
We are having memory corruption in our application somewhere, unable to find
out.
one part of code we found that we are specifying wrong format specifier.
Could anyone let me know if the following code may cause memory corruption.
#include <stdio.h>
#include <string.h>
int main()
{
char str[100]={0};
strcpy(str,"temporary");
char str2[100]={0};
sprintf(str2,"%S",str); // this line should have had %s instead of %S
return 0;
};
TFH
ishekara