일단 오류가 발생하는 위치는 아래의 함수입니다.
[code:1]
void streamFile(const char *filename,char* spec_trap) {
xmlTextReaderPtr reader;
int ret;
const xmlChar *name, *attribute="key" ,*value;
char *sensor_type, *event_type, *offset, *grade="grade";
char *sep=NULL;
char sep_trap[2];
int node_t;
xml_count=0;
/*
* Pass some special parsing options to activate DTD attribute defaulting,
* entities substitution and DTD validation
*/
sprintf(sep_trap,"%c%c",spec_trap[0],spec_trap[1]);