diff options
author | wm4 <wm4@nowhere> | 2014-09-13 01:26:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-13 01:27:54 +0200 |
commit | b5d253a5cb8c7759eacc708df1bfeac33b6f5c87 (patch) | |
tree | 8afd2f566e2c7060bcaef87497224ebb81cc54f5 /options/m_option.h | |
parent | 8bf57b8192a81a72dbd186e328f9f4b651ce8f6e (diff) | |
download | mpv-b5d253a5cb8c7759eacc708df1bfeac33b6f5c87.tar.bz2 mpv-b5d253a5cb8c7759eacc708df1bfeac33b6f5c87.tar.xz |
m_config: fix theoretic undefined behavior
The memcpy() is actually not enough: the types are incompatible, and no
memcpy, union, etc. will change that. (Although no real compiler will
ever break this.) Attempt to make this theoretically correct by actually
using a struct pointer. It's not the same struct type, but supposedly
it's ok, because all struct pointers always have the same size and
representation in standard C.
Diffstat (limited to 'options/m_option.h')
0 files changed, 0 insertions, 0 deletions