Ouch! Sometimes one simply doesn't find words... I wonder whether the
author ever checked the documentation for the function he was trying to use. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15492 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2514,7 +2514,7 @@ int mkv_ReadData(MatroskaFile *mf,ulonglong FilePos,
|
|||||||
rd = mf->cache->read(mf->cache,FilePos,Buffer,Count);
|
rd = mf->cache->read(mf->cache,FilePos,Buffer,Count);
|
||||||
if (rd<0) {
|
if (rd<0) {
|
||||||
const char *ce = mf->cache->geterror(mf->cache);
|
const char *ce = mf->cache->geterror(mf->cache);
|
||||||
vsnprintf(mf->errmsg,sizeof(mf->errmsg),"I/O Error: %s",(va_list)&ce);
|
snprintf(mf->errmsg,sizeof(mf->errmsg),"I/O Error: %s",ce);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return rd;
|
return rd;
|
||||||
|
|||||||
Reference in New Issue
Block a user