nitingautam / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

OptionalParameter.COctetString does not add a null terminator #108

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In jsmpp trunk, the constructor overload of OptionalParameter.COctetString that 
takes string value parameter simply passes it as-is to super (which is 
OptionalParameter.OctetString).

This is incorrect, a null terminator should be added, without it, the TLV is 
output in a malformed state.

The attached patch fixes this issue.

Original issue reported on code.google.com by cpmdxe...@gmail.com on 27 Jun 2011 at 8:51

Attachments: