aboutsummaryrefslogtreecommitdiff
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)
downloadlibgnunetchat-9d4878507c13f8b386c71ddec476f97d63f26e8b.tar.gz
libgnunetchat-9d4878507c13f8b386c71ddec476f97d63f26e8b.zip
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 @@
25#include "gnunet_chat_lib.h" 25#include "gnunet_chat_lib.h"
26 26
27#include <limits.h> 27#include <limits.h>
28#include <strings.h>
28 29
29#include "gnunet_chat_contact.h" 30#include "gnunet_chat_contact.h"
30#include "gnunet_chat_context.h" 31#include "gnunet_chat_context.h"
@@ -255,7 +256,7 @@ GNUNET_CHAT_uri_parse (const char *uri,
255 256
256 const size_t prefix_len = strlen(GNUNET_CHAT_URI_PREFIX); 257 const size_t prefix_len = strlen(GNUNET_CHAT_URI_PREFIX);
257 258
258 if (0 != strncmp(GNUNET_CHAT_URI_PREFIX, uri, prefix_len)) 259 if (0 != strncasecmp(GNUNET_CHAT_URI_PREFIX, uri, prefix_len))
259 { 260 {
260 if (emsg) 261 if (emsg)
261 *emsg = GNUNET_strdup (_ ("CHAT URI malformed (invalid prefix)")); 262 *emsg = GNUNET_strdup (_ ("CHAT URI malformed (invalid prefix)"));