diff options
author | Adrian Szyndela <adrian.s@samsung.com> | 2020-04-07 09:05:04 +0200 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2020-04-16 12:33:13 +0200 |
commit | 26c0d412aad5a4a1d4e1090ff9e72991083f3bde (patch) | |
tree | 54dfd5eb2fc51d983a4b2013e691db0df9ea1077 | |
parent | 8ebef23e82267b9a2c5debaae9d349a7a25aee19 (diff) | |
download | dbus-26c0d412aad5a4a1d4e1090ff9e72991083f3bde.tar.gz dbus-26c0d412aad5a4a1d4e1090ff9e72991083f3bde.tar.bz2 dbus-26c0d412aad5a4a1d4e1090ff9e72991083f3bde.zip |
dbus-transport: stop using orig_len outside its context
-rw-r--r-- | dbus/dbus-transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c index 6bc1f886..5771279a 100644 --- a/dbus/dbus-transport.c +++ b/dbus/dbus-transport.c @@ -1248,7 +1248,7 @@ recover_unused_bytes (DBusTransport *transport) &bytes); succeeded = TRUE; - if (!_dbus_string_copy (bytes, 0, buffer, orig_len)) + if (!_dbus_string_copy (bytes, 0, buffer, _dbus_string_get_length (buffer))) succeeded = FALSE; _dbus_verbose (" %d unused bytes sent to message loader\n", |