Greatly reduced RAM usage in ramfs.
This commit is contained in:
parent
9152443816
commit
ce9787a439
|
@ -131,6 +131,7 @@ namespace Sortix
|
|||
if ( buffersize < offset + count )
|
||||
{
|
||||
uintmax_t newsize = (uintmax_t) offset + (uintmax_t) count;
|
||||
if ( newsize < buffersize * 2 ) { newsize = buffersize * 2; }
|
||||
if ( !Resize(newsize) ) { return -1; }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue