Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323
uae
bsdsocket.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsdsocket.patch of Package uae
--- src/bsdsocket-posix-new.c +++ src/bsdsocket-posix-new.c @@ -1018,7 +1018,7 @@ } if (optval) { - buf = malloc(optlen); + buf = malloc(optlen < sizeof(int)? 4 : optlen); mapsockoptvalue(nativelevel, nativeoptname, optval, buf); } else { buf = NULL; @@ -1618,10 +1618,10 @@ flags | O_NONBLOCK : flags & ~O_NONBLOCK); if (argval) { DEBUG_LOG ("nonblocking\n"); - sb->ftable[sd-1] &= ~SF_BLOCKING; + sb->ftable[(uae_s32)sd-1] &= ~SF_BLOCKING; } else { DEBUG_LOG ("blocking\n"); - sb->ftable[sd-1] |= SF_BLOCKING; + sb->ftable[(uae_s32)sd-1] |= SF_BLOCKING; } return r;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor