fclose(fp);
return FALSE;
} else {
- char buf[3001] = {0,}; //maximum page text size buf
- int result = fread(buf, sizeof(char), stat_buf.st_size, fp);
+ int result = fread(viewerRenderData->viewer_body_text, sizeof(char), stat_buf.st_size, fp);
if (result != stat_buf.st_size) {
MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "fread is failed result : %d", result);
}
- strncpy(viewerRenderData->viewer_body_text, buf, stat_buf.st_size);
}
+
MSG_UI_DEBUG(MSG_UI_LEVEL_DEBUG, "viewer_body_text : (%s)", (char *)viewerRenderData->viewer_body_text);
if (viewerRenderData->viewer_body_text[0] != '\0') {