g_string_prepend* had interchanged src and dest params. Fixed.

-Yosh
This commit is contained in:
Manish Singh
1998-01-27 17:50:07 +00:00
parent 8f355e26ef
commit a9f866f4ca
2 changed files with 7 additions and 2 deletions

View 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

View 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;