Thread (2 messages) read the whole thread 2 messages, 2 authors, 2011-05-14
STALE5559d

[PATCH] Fix endian conversion for appparams in pbap client

From: Bartosz Szatkowski <hidden>
Date: 2011-05-08 18:00:15
Subsystem: the rest · Maintainer: Linus Torvalds

---
 client/pbap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/client/pbap.c b/client/pbap.c
index 837419c..dee85c8 100644
--- a/client/pbap.c
+++ b/client/pbap.c
@@ -312,6 +312,7 @@ static void read_return_apparam(struct session_data *session,
 			if (hdr->len == PHONEBOOKSIZE_LEN) {
 				guint16 val;
 				memcpy(&val, hdr->val, sizeof(val));
+                                val = get_be16(&val);
 				*phone_book_size = val;
 			}
 			break;
-- 
1.7.5.rc3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help