andreivasiliu2211 / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

Cannot create an empty name header as specified by the IrOBEX v1.2 specification #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to send an empty name header
(e.g. headerSet.setHeader(HeaderSet.NAME, "");)

What is the expected output?
A name header with length 3 (IrOBEX v1.2 section 2.2.2) -- "An empty Name
header is defined as a Name header of length 3 (one byte opcode + two byte
length)."

What do you see instead?
A name header with length 5 and a trailing null character.

Original issue reported on code.google.com by who.read...@gmail.com on 9 Nov 2009 at 4:23