aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-03-17 13:56:52 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-03-17 13:56:52 +0000
commit75554d0a484d21f95fcf24394f89c541a650acaf (patch)
tree51d9dc322baeb2e542fc13d9ba69e74f70a87636 /lib/misc.c
parente5e795dae28c7871a47040436454a456fb338820 (diff)
parentf9928cb319c2879a56b7280f09723b26035982d0 (diff)
Merging in 1.2.5.
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 35e9909b..fe2ff17c 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -33,6 +33,7 @@
#define BITLBEE_CORE
#include "nogaim.h"
#include "base64.h"
+#include "md5.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -88,6 +89,7 @@ static const htmlentity_t ent[] =
{ "lt", "<" },
{ "gt", ">" },
{ "amp", "&" },
+ { "apos", "'" },
{ "quot", "\"" },
{ "aacute", "á" },
{ "eacute", "é" },
@@ -521,7 +523,7 @@ struct ns_srv_reply *srv_lookup( char *service, char *protocol, char *domain )
}
/* Word wrapping. Yes, I know this isn't UTF-8 clean. I'm willing to take the risk. */
-char *word_wrap( char *msg, int line_len )
+char *word_wrap( const char *msg, int line_len )
{
GString *ret = g_string_sized_new( strlen( msg ) + 16 );