summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index d185627..af8fb27 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1064,7 +1064,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
1064 char pid[64]; 1064 char pid[64];
1065 1065
1066 /* build the [grand]parent list, moving up */ 1066 /* build the [grand]parent list, moving up */
1067 strcpy(pid, id); 1067 strncpy(pid, id, sizeof(pid));
1068 1068
1069 while (object_parent(pid, pid, sizeof(pid))) { 1069 while (object_parent(pid, pid, sizeof(pid))) {
1070 xs *m2 = NULL; 1070 xs *m2 = NULL;