aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.c
diff options
context:
space:
mode:
authorSven Moritz Hallberg <pesco@khjk.org>2010-06-04 00:08:23 +0200
committerSven Moritz Hallberg <pesco@khjk.org>2010-06-04 00:08:23 +0200
commit37598495deeb42e1cd216a0a4ba8068e4a6da453 (patch)
tree6db6cc0d184dbd1daa4c9c6f153d809d512d3bfe /lib/misc.c
parent1dd34701541fb8142402f593dc256ff9b54121bb (diff)
parent3dc6d86076dbea16c313bb87aa2f37166f289a8e (diff)
merge in bitlbee head
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 263d840d..9f8e496d 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -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 )