gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -strncasecmp for the win


From: gnunet
Subject: [taler-exchange] branch master updated: -strncasecmp for the win
Date: Thu, 05 Aug 2021 21:23:32 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 40b828ba -strncasecmp for the win
40b828ba is described below

commit 40b828ba232eaa7214ccb410e0d8899b1198f6be
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Aug 5 21:23:29 2021 +0200

    -strncasecmp for the win
---
 src/bank-lib/taler-exchange-wire-gateway-client.c | 7 ++++---
 1 file 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",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]