Reacted on -Wextra -Wno-unused-parameter warnings of gcc for fs_local.c
This commit is contained in:
parent
a37571c6c5
commit
431d31fff6
@ -456,7 +456,7 @@ int lfs_readlink(IsoFileSource *src, char *buf, size_t bufsiz)
|
|||||||
|
|
||||||
/* NULL-terminate the buf */
|
/* NULL-terminate the buf */
|
||||||
ret = ISO_SUCCESS;
|
ret = ISO_SUCCESS;
|
||||||
if (size >= bufsiz) {
|
if ((size_t) size >= bufsiz) {
|
||||||
ret = ISO_RR_PATH_TOO_LONG;
|
ret = ISO_RR_PATH_TOO_LONG;
|
||||||
size = bufsiz - 1;
|
size = bufsiz - 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user