wire_ctx: refactor to reduce duplication and UB
- Jan 04, 2017
-
-
Vladimír Čunát authored
It was using misaligned pointers which causes undefined behavior, at least theoretically. API change: data in wire_ctx_read() is now passed as void* instead of uint8_t*, and it zeroes the data on error.
-