[gnome-software/gnome-3-10] Fix a critical error in gs_string_replace()
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-10] Fix a critical error in gs_string_replace()
- Date: Fri, 11 Oct 2013 10:56:55 +0000 (UTC)
commit 45c00d67f0bd9376e4aa9adebb10600eec24178b
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 11 11:52:17 2013 +0100
Fix a critical error in gs_string_replace()
A merge conflict was not properly resolved in a previous commit, which left the
call to g_string_erase() with the wrong sign.
src/gs-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-utils.c b/src/gs-utils.c
index 9e8afd3..2068aca 100644
--- a/src/gs-utils.c
+++ b/src/gs-utils.c
@@ -194,7 +194,7 @@ gs_string_replace (GString *string, const gchar *search, const gchar *replace)
if (search_len > replace_len) {
g_string_erase (string,
tmp - string->str,
-- search_len - replace_len);
+ search_len - replace_len);
}
if (search_len < replace_len) {
g_string_insert_len (string,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]