diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | dbus/dbus-string.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2003-01-19 Anders Carlsson <andersca@codefactory.se> + + * dbus/dbus-string.c (_dbus_string_move_len): Don't delete all + of the string, just as long as specified. + 2003-01-19 Havoc Pennington <hp@pobox.com> * dbus/dbus-connection.c (dbus_connection_get_is_authenticated): diff --git a/dbus/dbus-string.c b/dbus/dbus-string.c index 5a918617..257935eb 100644 --- a/dbus/dbus-string.c +++ b/dbus/dbus-string.c @@ -906,7 +906,7 @@ _dbus_string_move_len (DBusString *source, return FALSE; delete (real_source, start, - real_source->len - start); + len); return TRUE; } @@ -1763,7 +1763,7 @@ test_base64_roundtrip (const unsigned char *data, * * @todo Need to write tests for _dbus_string_copy() and * _dbus_string_move() moving to/from each of start/middle/end of a - * string. + * string. Also need tests for _dbus_string_move_len () * * @returns #TRUE on success. */ |