fix segfault due to ignoring a possible pointer change through realloc in l_g_string_append_int() from utils.c

personal/stbuehler/wip
Thomas Porzelt 14 years ago
parent 5a0462688c
commit a17e3fa44c

@ -582,12 +582,12 @@ GString *l_g_string_assign_len(GString *string, const gchar *val, gssize len) {
void l_g_string_append_int(GString *dest, gint64 v) {
gchar *buf, *end, swap;
guint len;
gsize len;
guint64 val;
buf = dest->str + dest->len;
len = dest->len + 1;
g_string_set_size(dest, dest->len + 21);
buf = dest->str + len - 1;
if (v < 0) {
len++;

Loading…
Cancel
Save