write_overlay: Fix SMAP violation in OverlayInode::Read
Change-Id: I66d852008a4375bb9295bc0238ed6289fb8439d5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2046 Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
51429f0417
commit
39147a617f
@@ -755,7 +755,7 @@ OverlayInode::Read(void *_cookie, off_t position, void *buffer, size_t *length,
|
|||||||
if (ioRequest != NULL)
|
if (ioRequest != NULL)
|
||||||
;// TODO: handle this case
|
;// TODO: handle this case
|
||||||
else
|
else
|
||||||
memset(pointer, 0, gapSize);
|
user_memset(pointer, 0, gapSize);
|
||||||
|
|
||||||
bytesLeft -= gapSize;
|
bytesLeft -= gapSize;
|
||||||
position += gapSize;
|
position += gapSize;
|
||||||
|
|||||||
Reference in New Issue
Block a user