summaryrefslogtreecommitdiff
path: root/src/gnunet_chat_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_lib.c')
-rw-r--r--src/gnunet_chat_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c
index 0fe9c57..114f40c 100644
--- a/src/gnunet_chat_lib.c
+++ b/src/gnunet_chat_lib.c
@@ -25,6 +25,7 @@
#include "gnunet_chat_lib.h"
#include <limits.h>
+#include <strings.h>
#include "gnunet_chat_contact.h"
#include "gnunet_chat_context.h"
@@ -255,7 +256,7 @@ GNUNET_CHAT_uri_parse (const char *uri,
const size_t prefix_len = strlen(GNUNET_CHAT_URI_PREFIX);
- if (0 != strncmp(GNUNET_CHAT_URI_PREFIX, uri, prefix_len))
+ if (0 != strncasecmp(GNUNET_CHAT_URI_PREFIX, uri, prefix_len))
{
if (emsg)
*emsg = GNUNET_strdup (_ ("CHAT URI malformed (invalid prefix)"));