* gw/smsc/smsc_smpp.c
-Remove Null Terminated Character from Delivery Reports
Some providers like MBLOX send 00 hex character in delivery reports.

if handle_dlr does not do any conversion to msgdata when a Delivery
Reports comes with 00 hex character the cstr representation of
msgdata will put an additional \0 to the end - and when this string is
concatenated to another (like when sqlbox does an INSERT statement)
the final string has an \0 in the middle. This may affect a
lot of operations with the final string.

Attachment: null_terminated_replace.patch
Description: Binary data

Reply via email to