diff options
author | Sven Moritz Hallberg <pesco@khjk.org> | 2010-06-03 18:18:46 +0200 |
---|---|---|
committer | Sven Moritz Hallberg <pesco@khjk.org> | 2010-06-03 18:18:46 +0200 |
commit | a6b2f13e38e75e7bca00a1e6c1963783f244c0b2 (patch) | |
tree | 9629d54c53852ce0faf5e6134f3ce34628861cb4 | |
parent | 814aa52228c7cad1d036c1a6dc5ea03cce61c048 (diff) |
fix a double free
-rw-r--r-- | protocols/nogaim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/nogaim.c b/protocols/nogaim.c index f0c87c20..ebb00418 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -786,8 +786,8 @@ void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, ui ( ts = format_timestamp( irc, sent_at ) ) ) { char *new = g_strconcat( ts, msg, NULL ); - g_free( ts ); - ts = msg = new; + g_free( msg ); + msg = new; } wrapped = word_wrap( msg, 425 ); |