mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix disked verify_mountpoint buffer overflow.
This commit is contained in:
parent
bc2f6842d1
commit
8e34889cbd
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ static bool verify_mountpoint(const char* mountpoint)
|
||||||
if ( !mountpoint[index] || mountpoint[index] == '/' )
|
if ( !mountpoint[index] || mountpoint[index] == '/' )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
while ( mountpoint[index] != '/' )
|
while ( mountpoint[index] && mountpoint[index] != '/' )
|
||||||
index++;
|
index++;
|
||||||
while ( mountpoint[index] == '/' )
|
while ( mountpoint[index] == '/' )
|
||||||
index++;
|
index++;
|
||||||
|
|
Loading…
Reference in a new issue