Modified return check from mmap call.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@714 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-12-24 10:38:28 +00:00
parent ecbbc32762
commit 0aec7c648b
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ void LocalCamera::Initialise()
}
m_buffer = (unsigned char *)mmap(0, m_vmb.size, PROT_READ|PROT_WRITE, MAP_SHARED, m_videohandle,0);
if( !((long)m_buffer > 0) )
if( m_buffer == MAP_FAILED )
{
Error(( "Could not mmap video: %s", strerror(errno) ));
exit(-1);