summaryrefslogtreecommitdiffstats
path: root/scripts/simpletrace.py
diff options
context:
space:
mode:
authorDaniel P. Berrangé2019-04-15 17:45:01 +0200
committerGerd Hoffmann2019-05-02 08:29:33 +0200
commit3541cd48f32233dd0c0766a3f342e3fd64b04381 (patch)
treefcb6c02f579946148917d76be0a3ea2aefe1415f /scripts/simpletrace.py
parentMerge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff)
downloadqemu-3541cd48f32233dd0c0766a3f342e3fd64b04381.tar.gz
qemu-3541cd48f32233dd0c0766a3f342e3fd64b04381.tar.xz
qemu-3541cd48f32233dd0c0766a3f342e3fd64b04381.zip
usb-mtp: fix string length for filename when writing metadata
The ObjectInfo 'length' field provides the length of the wide character string filename. This is then converted to a multi-byte character string. This may have a different byte count to the wide character string. We should use the C string length of the multi-byte string instead. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-id: 20190415154503.6758-2-berrange@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/simpletrace.py')
0 files changed, 0 insertions, 0 deletions