libpurple/protocols/mxit/chunk.c

changeset 37905
848e16508276
parent 37901
41e45e18f3b2
--- a/libpurple/protocols/mxit/chunk.c	Fri Aug 19 23:51:13 2016 -0500
+++ b/libpurple/protocols/mxit/chunk.c	Fri Aug 19 23:57:02 2016 -0500
@@ -180,11 +180,7 @@
 
 	*value = ntohs( *( (const short*) chunkdata ) );	/* host byte-order */
 
-	memcpy(&value_v, chunkdata, sizeof(value_v));
-
-	*value = ntohs(value_v); /* host byte-order */
-
-	return sizeof(value_v);
+	return sizeof( short );
 }
 
 /*------------------------------------------------------------------------
@@ -202,11 +198,7 @@
 
 	*value = ntohl( *( (const int*) chunkdata ) );	/* host byte-order */
 
-	memcpy(&value_v, chunkdata, sizeof(value_v));
-
-	*value = ntohl(value_v); /* host byte-order */
-
-	return sizeof(value_v);
+	return sizeof( int );
 }
 
 #if	0

mercurial