diff options
| author | 2024-07-23 10:09:12 +0200 | |
|---|---|---|
| committer | 2024-07-23 10:09:12 +0200 | |
| commit | de628c5f33fa7989a14a3748a713d73e1ea6ff23 (patch) | |
| tree | 2f016f98682cf90fa02f10675dfbb19d6b9a70d3 /mastoapi.c | |
| parent | New constant MD5_HEX_SIZE. (diff) | |
| download | snac2-de628c5f33fa7989a14a3748a713d73e1ea6ff23.tar.gz snac2-de628c5f33fa7989a14a3748a713d73e1ea6ff23.tar.xz snac2-de628c5f33fa7989a14a3748a713d73e1ea6ff23.zip | |
Use MD5_HEX_SIZE in more places.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -2186,12 +2186,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 2186 | xs *des = xs_list_new(); | 2186 | xs *des = xs_list_new(); |
| 2187 | xs_list *p; | 2187 | xs_list *p; |
| 2188 | const xs_str *v; | 2188 | const xs_str *v; |
| 2189 | char pid[64]; | 2189 | char pid[MD5_HEX_SIZE]; |
| 2190 | 2190 | ||
| 2191 | /* build the [grand]parent list, moving up */ | 2191 | /* build the [grand]parent list, moving up */ |
| 2192 | strncpy(pid, id, sizeof(pid)); | 2192 | strncpy(pid, id, sizeof(pid)); |
| 2193 | 2193 | ||
| 2194 | while (object_parent(pid, pid, sizeof(pid))) { | 2194 | while (object_parent(pid, pid)) { |
| 2195 | xs *m2 = NULL; | 2195 | xs *m2 = NULL; |
| 2196 | 2196 | ||
| 2197 | if (valid_status(timeline_get_by_md5(&snac1, pid, &m2))) { | 2197 | if (valid_status(timeline_get_by_md5(&snac1, pid, &m2))) { |