diff options
author | default <nobody@localhost> | 2023-01-12 09:28:02 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-01-12 09:28:02 +0100 |
commit | bb0d8f2a2755af5e11b46d32be84155ba71ea534 (patch) | |
tree | 86eb998f66c875dc7d2d40ba3021a3e69ffe9400 /webfinger.c | |
parent | 16be679ecdf12f5324f8778e4e03d21a84d4144f (diff) |
Backport from xs.
Diffstat (limited to 'webfinger.c')
-rw-r--r-- | webfinger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webfinger.c b/webfinger.c index 928af22..6a6133d 100644 --- a/webfinger.c +++ b/webfinger.c @@ -33,7 +33,7 @@ int webfinger_request(char *qs, char **actor, char **user) xs *s = xs_dup(qs); if (xs_startswith(s, "@")) - s = xs_crop(s, 1, 0); + s = xs_crop_i(s, 1, 0); l = xs_split_n(s, "@", 1); @@ -141,7 +141,7 @@ int webfinger_get_handler(d_char *req, char *q_path, /* strip a possible leading @ */ if (xs_startswith(an, "@")) - an = xs_crop(an, 1, 0); + an = xs_crop_i(an, 1, 0); l = xs_split_n(an, "@", 1); |