buf = "Time";\r
if (!FXSYS_memcmp32(buf, text[i].key, FX_MIN(len, FXSYS_strlen(buf)))) {\r
if (!bTime) {\r
- FXSYS_memset32(pAttribute->m_strTime, 0, 20);\r
- FXSYS_memcpy32(pAttribute->m_strTime, text[i].text, text[i].text_length);\r
+ FXSYS_memset32(pAttribute->m_strTime, 0, sizeof(pAttribute->m_strTime));\r
+ FXSYS_memcpy32(pAttribute->m_strTime, text[i].text,\r
+ FX_MIN(sizeof(pAttribute->m_strTime) - 1, text[i].text_length));\r
}\r
} else {\r
buf = "Author";\r
}\r
void* CCodec_PngModule::Start(void* pModule)\r
{\r
- FXPNG_Context* p = (FXPNG_Context*)FX_Alloc(FX_BYTE, sizeof(FXPNG_Context));\r
+ FXPNG_Context* p = (FXPNG_Context*)FX_Alloc(uint8_t, sizeof(FXPNG_Context));\r
if(p == NULL) {\r
return NULL;\r
}\r