Hello,
I have defined a structure in the program :
typedef struct
{
char name[100];
char ip_addr[65];
...;
}BATTERY_ALARM_STATE;
static BATTERY_ALARM_STATE gBatteryAlarmState;
void func()
{
...;
snprintf(gBatteryAlarmState.ip_addr, sizeof(gBatteryAlarmState.ip_addr), "%s", "127.0.0.1");
snprintf(gBatteryAlarmState.name, sizeof(gBatteryAlarmState.name), "%s", "123456");
}
when executing the func(), it always popup the error message: Attempt to write beyond end of string. and the error always be stopped at the second "snprintf". This code run well in the cvi2013, but just have the error in the cvi 2013 sp1.
David