# HG changeset patch # User Matti Hamalainen # Date 1192849553 -10800 # Node ID 10a72af488d968a61023dacdb032314fd93f91fc # Parent 5ea2431c12bffc567b802eaf6c4438628400002d Fix a stupid bug in memory reallocation of the evaluator. diff -r 5ea2431c12bf -r 10a72af488d9 src/audacious/tuple_compiler.c --- a/src/audacious/tuple_compiler.c Sat Oct 20 06:05:04 2007 +0300 +++ b/src/audacious/tuple_compiler.c Sat Oct 20 06:05:53 2007 +0300 @@ -733,7 +733,7 @@ *reslen += strlen(str); if (*res) { if (*reslen >= *resmax) { - *resmax += MIN_ALLOC_BUF; + *resmax += *reslen + MIN_ALLOC_BUF; *res = g_realloc(*res, *resmax); }