summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-05 21:23:29 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-05 21:23:29 +0200
commit40b828ba232eaa7214ccb410e0d8899b1198f6be (patch)
tree9a40e9ae3918aa3a1f666d8ebd33c1304f9b1ae0
parentbd7e44720b212defebb7df47f85d5f393b2cb108 (diff)
downloadexchange-40b828ba232eaa7214ccb410e0d8899b1198f6be.tar.gz
exchange-40b828ba232eaa7214ccb410e0d8899b1198f6be.tar.bz2
exchange-40b828ba232eaa7214ccb410e0d8899b1198f6be.zip
-strncasecmp for the win
-rw-r--r--src/bank-lib/taler-exchange-wire-gateway-client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bank-lib/taler-exchange-wire-gateway-client.c b/src/bank-lib/taler-exchange-wire-gateway-client.c
index 2d2fe436..6159bca3 100644
--- a/src/bank-lib/taler-exchange-wire-gateway-client.c
+++ b/src/bank-lib/taler-exchange-wire-gateway-client.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2017-2020 Taler Systems SA
+ Copyright (C) 2017-2021 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -650,8 +650,9 @@ run (void *cls,
}
if ( (NULL == auth.wire_gateway_url) ||
(0 == strlen (auth.wire_gateway_url)) ||
- (0 != strcasecmp ("http",
- auth.wire_gateway_url)) )
+ (0 != strncasecmp ("http",
+ auth.wire_gateway_url,
+ strlen ("http"))) )
{
fprintf (stderr,
"Error: Invalid wire gateway URL `%s' configured.\n",