diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-04 20:29:18 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-04 20:29:18 +0100 |
commit | 6cceb617af887df49df74729bb1813bbd75a1346 (patch) | |
tree | 867616e235e6a1d84790f6c7c73f60900cbe2bb7 /src/util/payto.c | |
parent | 9b290fb26b2d18725858508bc14ae0933fff0250 (diff) | |
download | exchange-6cceb617af887df49df74729bb1813bbd75a1346.tar.xz |
centralize (most) offline signing/verifying operations into offline_signatures.c
Diffstat (limited to 'src/util/payto.c')
-rw-r--r-- | src/util/payto.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/util/payto.c b/src/util/payto.c index 4b2bbf4e3..54072d667 100644 --- a/src/util/payto.c +++ b/src/util/payto.c @@ -49,24 +49,25 @@ TALER_payto_get_subject (const char *payto_uri) do { if (0 == strncasecmp (++key, - "subject", - strlen ("subject"))) + "subject", + strlen ("subject"))) { value_start = strchr (key, - (unsigned char) '='); + (unsigned char) '='); if (NULL == value_start) return NULL; value_end = strchrnul (value_start, - (unsigned char) '&'); + (unsigned char) '&'); return GNUNET_strndup (value_start + 1, - value_end - value_start - 1); + value_end - value_start - 1); } } while ( (key = strchr (key, - (unsigned char) '&')) ); + (unsigned char) '&')) ); return NULL; } + /** * Obtain the payment method from a @a payto_uri. The * format of a payto URI is 'payto://$METHOD/$SOMETHING'. |