androiddump: Let adb_send funcs generate string length prefix
authorMikael Kanstrup <mikael.kanstrup@gmail.com>
Thu, 22 Jun 2017 14:20:55 +0000 (16:20 +0200)
committerAnders Broman <a.broman58@gmail.com>
Tue, 27 Jun 2017 04:12:58 +0000 (04:12 +0000)
commitd84da1eb97e3442dc8005b296111a5286ccb10f8
treea242f935716c64e52004498e9ca7f980927a1659
parent9a1d16b55324056e4d5031370b007097b76dc519
androiddump: Let adb_send funcs generate string length prefix

All strings sent to adb are prefixed with the length as a 4 byte
hex string. The length info prefix was manually hard coded into
strings. To avoid mistakes when updating code and to simplify
reading the source code instead let the various adb_send functions
calculate string lengths and generate the 4 byte hex string
prefixes.

Change-Id: I4178e9df5930a1c7904053e5a7750c943efddc84
Reviewed-on: https://code.wireshark.org/review/22399
Reviewed-by: Roland Knall <rknall@gmail.com>
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
extcap/androiddump.c