Daniel P. Berrangé 3541cd48f3 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>
2019-05-02 08:29:33 +02:00
..
2019-03-07 21:45:53 +01:00
2019-04-01 08:53:40 +02:00
2019-03-07 21:45:53 +01:00
2019-04-25 14:16:41 -03:00
2019-03-07 21:45:53 +01:00
2019-03-25 17:01:10 +00:00
2019-04-26 16:38:04 +01:00
2019-03-07 21:45:53 +01:00
2019-04-29 16:09:51 +01:00
2019-03-07 21:45:53 +01:00
2019-04-27 21:34:46 +01:00
2019-04-04 16:36:21 -07:00
2019-04-26 14:30:18 +01:00
2019-03-07 21:45:53 +01:00
2019-03-08 16:31:34 +00:00
2019-04-27 21:34:46 +01:00