g_string_prepend* had interchanged src and dest params. Fixed.
-Yosh
This commit is contained in:
@ -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>
|
Tue Jan 27 01:38:52 PST 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gslist.c: fixed a really, really lame error. g_slist_insert
|
* gslist.c: fixed a really, really lame error. g_slist_insert
|
||||||
|
|||||||
@ -312,7 +312,7 @@ g_string_prepend (GString *fstring, gchar *val)
|
|||||||
|
|
||||||
g_string_maybe_expand (string, len);
|
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);
|
strncpy (string->str, val, len);
|
||||||
|
|
||||||
@ -330,7 +330,7 @@ g_string_prepend_c (GString *fstring, char c)
|
|||||||
|
|
||||||
g_string_maybe_expand (string, 1);
|
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;
|
string->str[0] = c;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user