]> Pileus Git - ~andy/gtk/commitdiff
g_string_prepend* had interchanged src and dest params. Fixed.
authorManish Singh <yosh@src.gnome.org>
Tue, 27 Jan 1998 17:50:07 +0000 (17:50 +0000)
committerManish Singh <yosh@src.gnome.org>
Tue, 27 Jan 1998 17:50:07 +0000 (17:50 +0000)
-Yosh

glib/ChangeLog
glib/gstring.c

index e19a24669c3346d4251b2aa64e2005360465eb43..4d8c9927b233fd589673327536bb152992683424 100644 (file)
@@ -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
index 28dc2c1f4f36cfb38f54656be9e6baf93d621f47..a26eaa96d8e2d8479721d168fedd543d2acf4348 100644 (file)
@@ -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;