Skip to content

Commit c1bd5fc

Browse files
isagefrangarcj
authored andcommitted
Fix size_t overflow
1 parent 83eb169 commit c1bd5fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

newlib/libc/sys/vita/net/gethostname.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int gethostname(char *name, size_t len)
3737
errno = EFAULT;
3838
return -1;
3939
}
40-
if (len < 0)
40+
if (len <= 0)
4141
{
4242
errno = EINVAL;
4343
return -1;

0 commit comments

Comments
 (0)