aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-03-14 17:55:27 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-03-14 17:55:27 +0000
commitfb009891bb60921401ffeb47b33cf35a246cbe34 (patch)
tree64802b4ef62334559815ca4a5b6d1e04fa6a49ae /lib/misc.c
parent8fb1263325c6839b792c352283abac3f63142fa2 (diff)
parentc6ca3ee33e27feefb8cae0dc1d55a7239baf43cb (diff)
Adding a few consts and other misc fixes from bug #431. Doing this via a
merge because bzr can probably deal with the conflicts better than patch.
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 3976e01b..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>
@@ -522,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 );