char *record_payload;
emulMsg_data_s record = { 0, };
- data_s filePayload;
+ data_s filePayload = { NULL, 0 };
/* parse string */
if (index == 0)
condition = 0;
} else if (emulMsg_poll_events[index].events & EPOLLIN) {
if (emulMsg_poll_events[index].data.fd == emulMsg_file_fd) {
- char readbuffer[READ_BUFFER_LENGTH_MAX];
+ char readbuffer[READ_BUFFER_LENGTH_MAX + 1];
int readcnt = 0;
DEBUG_MSG("precess POLLIN ");
- memset(readbuffer, 0x00, sizeof(READ_BUFFER_LENGTH_MAX));
+ memset(readbuffer, 0x00, sizeof(READ_BUFFER_LENGTH_MAX) + 1);
readcnt = read(emulMsg_file_fd, readbuffer, READ_BUFFER_LENGTH_MAX);