[polypaudio-commits] r654 - /trunk/src/polypcore/protocol-esound.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Apr 6 23:30:01 PDT 2006


Author: ossman
Date: Fri Apr  7 08:29:59 2006
New Revision: 654

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=654&root=polypaudio&view=rev
Log:
Some memcpy arithmetic that wasn't removed when doing the redesign to update
the data pointer instead.

Modified:
    trunk/src/polypcore/protocol-esound.c

Modified: trunk/src/polypcore/protocol-esound.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/protocol-esound.c?rev=654&root=polypaudio&r1=653&r2=654&view=diff
==============================================================================
--- trunk/src/polypcore/protocol-esound.c (original)
+++ trunk/src/polypcore/protocol-esound.c Fri Apr  7 08:29:59 2006
@@ -669,7 +669,7 @@
     format = MAYBE_INT32_SWAP(c->swap_byte_order, format);
     data = (const char*)data + sizeof(int32_t);
 
-    memcpy(&rate, (const char*)data + sizeof(int32_t), sizeof(int32_t));
+    memcpy(&rate, data, sizeof(int32_t));
     rate = MAYBE_INT32_SWAP(c->swap_byte_order, rate);
     data = (const char*)data + sizeof(int32_t);
     




More information about the pulseaudio-commits mailing list