Fix disked verify_mountpoint buffer overflow.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-03-28 14:31:23 +02:00
parent bc2f6842d1
commit 8e34889cbd
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ static bool verify_mountpoint(const char* mountpoint)
if ( !mountpoint[index] || mountpoint[index] == '/' )
return false;
}
while ( mountpoint[index] != '/' )
while ( mountpoint[index] && mountpoint[index] != '/' )
index++;
while ( mountpoint[index] == '/' )
index++;