henan198961 |
2017-12-14 15:06 |
if (parameter >= 0 && parameter < PNG_WARNING_PARAMETER_COUNT) { /* Append this parameter */ png_const_charp parm = p[parameter]; png_const_charp pend = p[parameter] + (sizeof p[parameter]);
/* No need to copy the trailing '\0' here, but there is no guarantee * that parm[] has been initialized, so there is no guarantee of a * trailing '\0': */ for (; i<(sizeof msg)-1 && parm != '\0' && parm < pend; ++i) msg = *parm++;
++message; continue; } 这是出错的那段代码,应该是判断字符串是否结束,用'\0'没错呀
|
|