gmio_stl: fix regression in gmio_stlb_read()

This commit is contained in:
Hugues Delorme 2015-05-28 17:32:05 +02:00
parent 304e1c39bb
commit 3508eaa236

View File

@ -93,7 +93,7 @@ int gmio_stlb_read(
/* Read header */
if (gmio_stream_read(&trsf->stream, &header, GMIO_STLB_HEADER_SIZE, 1)
!= GMIO_STLB_HEADER_SIZE)
!= 1)
{
return GMIO_STL_ERROR_HEADER_WRONG_SIZE;
}