summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-08-12 03:29:30 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2022-08-12 03:29:30 +0200
commit9d4878507c13f8b386c71ddec476f97d63f26e8b (patch)
tree7a87f533037d7f4aa905ab55b7837c7be44dba16
parent3496003fe93ca062bcbe08de663dc2dabaeff794 (diff)
Ignore case of the uri prefix
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-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)"));