From de628c5f33fa7989a14a3748a713d73e1ea6ff23 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 23 Jul 2024 10:09:12 +0200 Subject: Use MD5_HEX_SIZE in more places. --- mastoapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mastoapi.c') diff --git a/mastoapi.c b/mastoapi.c index be477c3..8a6cbe6 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -2186,12 +2186,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, xs *des = xs_list_new(); xs_list *p; const xs_str *v; - char pid[64]; + char pid[MD5_HEX_SIZE]; /* build the [grand]parent list, moving up */ strncpy(pid, id, sizeof(pid)); - while (object_parent(pid, pid, sizeof(pid))) { + while (object_parent(pid, pid)) { xs *m2 = NULL; if (valid_status(timeline_get_by_md5(&snac1, pid, &m2))) { -- cgit v1.2.3