Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adc3b4cd authored by Aravind Akella's avatar Aravind Akella Committed by Android Git Automerger
Browse files

am be451b57: Merge "Fix the arguments to memcpy." into mnc-dev

* commit 'be451b57':
  Fix the arguments to memcpy.
parents 9572f971 be451b57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1709,7 +1709,7 @@ int SensorService::SensorEventConnection::handleEvent(int fd, int events, void*
#endif
           } else if (numBytesRead == sizeof(uint32_t)) {
               uint32_t numAcks = 0;
               memcpy(&numAcks, buf, sizeof(numBytesRead));
               memcpy(&numAcks, buf, numBytesRead);
               // Sanity check to ensure  there are no read errors in recv, numAcks is always
               // within the range and not zero. If any of the above don't hold reset
               // mWakeLockRefCount to zero.