diff options
author | Sven Moritz Hallberg <pesco@khjk.org> | 2010-06-04 00:08:23 +0200 |
---|---|---|
committer | Sven Moritz Hallberg <pesco@khjk.org> | 2010-06-04 00:08:23 +0200 |
commit | 37598495deeb42e1cd216a0a4ba8068e4a6da453 (patch) | |
tree | 6db6cc0d184dbd1daa4c9c6f153d809d512d3bfe /lib/misc.c | |
parent | 1dd34701541fb8142402f593dc256ff9b54121bb (diff) | |
parent | 3dc6d86076dbea16c313bb87aa2f37166f289a8e (diff) |
merge in bitlbee head
Diffstat (limited to 'lib/misc.c')
-rw-r--r-- | lib/misc.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -153,12 +153,12 @@ static const htmlentity_t ent[] = void strip_html( char *in ) { char *start = in; - char *out = g_malloc( strlen( in ) + 1 ); + char out[strlen(in)+1]; char *s = out, *cs; int i, matched; int taglen; - memset( out, 0, strlen( in ) + 1 ); + memset( out, 0, sizeof( out ) ); while( *in ) { @@ -229,7 +229,6 @@ void strip_html( char *in ) } strcpy( start, out ); - g_free( out ); } char *escape_html( const char *html ) |