Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
sox
sox-14.3.1-aliasing.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sox-14.3.1-aliasing.patch of Package sox
Index: src/sox-fmt.c =================================================================== --- src/sox-fmt.c.orig +++ src/sox-fmt.c @@ -77,8 +77,10 @@ static int write_header(sox_format_t * f size_t comments_len = strlen(comments); size_t comments_bytes = (comments_len + 7) & ~7u; /* Multiple of 8 bytes */ uint64_t size = ft->olength? ft->olength : ft->signal.length; + uint32_t local_magic; + memcpy(&local_magic, &magic[MACHINE_IS_BIGENDIAN], sizeof(local_magic)); sox_bool error = sox_false - ||lsx_writedw(ft, *(uint32_t *)&magic[MACHINE_IS_BIGENDIAN]) + ||lsx_writedw(ft, local_magic) ||lsx_writedw(ft, FIXED_HDR + (unsigned)comments_bytes) ||lsx_writeqw(ft, size) ||lsx_writedf(ft, ft->signal.rate)
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