This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Restore safe reinterpret_cast in readUInt32

  • Loading branch information...
nlyan committed Sep 9, 2016
1 parent e81f7ab commit fb5e2bb1715ff181cf5864dceedde29b5ddc8131
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/synergy/IClipboard.cpp
@@ -151,7 +151,7 @@ IClipboard::copy(IClipboard* dst, const IClipboard* src, Time time)
UInt32
IClipboard::readUInt32(const char* buf)
{
- const unsigned char* ubuf = static_cast<const unsigned char*>(buf);
+ const unsigned char* ubuf = reinterpret_cast<const unsigned char*>(buf);
return (static_cast<UInt32>(ubuf[0]) << 24) |
(static_cast<UInt32>(ubuf[1]) << 16) |
(static_cast<UInt32>(ubuf[2]) << 8) |

0 comments on commit fb5e2bb

Please sign in to comment.