summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-01-19 15:57:56 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-01-19 15:57:56 +0000
commit8a587f6415dd806ad3b77049a5dd47ae24540ae4 (patch)
treedd3179fdf3e63c4c6e904728e1f8d0cdd465e99f
parent14cc2707a0318381b5cc68588efc36f61d617b78 (diff)
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.
-rw-r--r--ChangeLog5
-rw-r--r--dbus/dbus-string.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 97510249..45530307 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
*/