2
0
Fork 0

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

This commit is contained in:
Thomas Porzelt 2009-03-19 17:59:30 +01:00
parent 5a0462688c
commit a17e3fa44c
1 changed files with 2 additions and 2 deletions

View File

@ -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++;