commit | e078aa1da091a78ddfdc70189bbd14688cf70291 | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Fri Apr 29 14:50:09 2011 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Apr 29 14:50:09 2011 -0700 |
tree | 8bb50c0ce1ed13820ffa392d324d58fb4cabff54 | |
parent | 7913cab686f1ccf02b8bb6fa274634c26c30e0cf [diff] | |
parent | e785aa08ba2b11c10850ec675cc8bd42b964b468 [diff] |
Merge "Fix fifo size check code."
diff --git a/rsContext.cpp b/rsContext.cpp index 50f5f55..1592f81 100644 --- a/rsContext.cpp +++ b/rsContext.cpp
@@ -598,7 +598,7 @@ *subID = d[0]; //LOGE("getMessageToClient %i %i", commandID, *subID); - if (bufferLen >= bytesData) { + if (bufferLen >= (*receiveLen)) { memcpy(data, d+1, *receiveLen); mIO.mToClient.next(); return (RsMessageToClientType)commandID;