diff options
author | Manish Singh <yosh@src.gnome.org> | 1998-01-27 17:50:07 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 1998-01-27 17:50:07 +0000 |
commit | a9f866f4ca47ad4ab8ef73ff9e69cb8c24d18498 (patch) | |
tree | b8268a3ed550a3a77176bffaad325fd549b3af27 /glib | |
parent | 8f355e26ef034ed70a56f13830ab919fab8b86d5 (diff) | |
download | gtk+-a9f866f4ca47ad4ab8ef73ff9e69cb8c24d18498.tar.gz |
g_string_prepend* had interchanged src and dest params. Fixed.
-Yosh
Diffstat (limited to 'glib')
-rw-r--r-- | glib/ChangeLog | 5 | ||||
-rw-r--r-- | glib/gstring.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/glib/ChangeLog b/glib/ChangeLog index e19a24669c..4d8c9927b2 100644 --- a/glib/ChangeLog +++ b/glib/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 27 09:46:57 PST 1998 Manish Singh <yosh@gimp.org> + + * gstring.c: g_string_prepend and g_string_prepend_c had + interchanged src and dest parameters for g_memmove. Fixed. + Tue Jan 27 01:38:52 PST 1998 Manish Singh <yosh@gimp.org> * gslist.c: fixed a really, really lame error. g_slist_insert diff --git a/glib/gstring.c b/glib/gstring.c index 28dc2c1f4f..a26eaa96d8 100644 --- a/glib/gstring.c +++ b/glib/gstring.c @@ -312,7 +312,7 @@ g_string_prepend (GString *fstring, gchar *val) g_string_maybe_expand (string, len); - g_memmove (string->str, string->str + len, string->len); + g_memmove (string->str + len, string->str, string->len); strncpy (string->str, val, len); @@ -330,7 +330,7 @@ g_string_prepend_c (GString *fstring, char c) g_string_maybe_expand (string, 1); - g_memmove (string->str, string->str + 1, string->len); + g_memmove (string->str + 1, string->str, string->len); string->str[0] = c; |