Commit: f264b1c744396b4b723f34f699526592a519edb1
Parent: cb6fe44ba125817a58f41d44018734a0377a873e
Author: Jakub Adamek <adamek.kuba@gmail.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:22:02
Tree: 544f9c076f6c98319df0115e2187a340048e208d

gobex: Fix encoding of empty unicode headers According to IrOBEX: "An empty Name header is defined as a Name header of length 3 (one byte opcode + two byte length)." The current code encodes an empty header with 5 bytes, including two bytes of null-terminator. This patch assumes that this definition of emptiness applies to all unicode headers, not just the name header.

Diffstat

M gobex/gobex-header.c | 11 ++++++++++-
M unit/test-gobex-header.c | 55 ++++++++++++++++++++++++++++++++++++++++

2 files changed, 65 insertions(+), 1 deletions(-)

View Full Diff | Patch