summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-16 20:12:44 +0200
committerdefault <nobody@localhost>2023-04-16 20:12:44 +0200
commit8205159f8ca98f525d892c02eb7dadfdf6d446d4 (patch)
tree540cd5bdb3e578f208f8d0efef3eaaae211057ea /mastoapi.c
parent80cd4eaada3836fb94f55b82a6e2a70d8f83fdb3 (diff)
Replaced strcpy() with strncpy().
To shut up some compiler whining.
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,
char pid[64];
/* build the [grand]parent list, moving up */
- strcpy(pid, id);
+ strncpy(pid, id, sizeof(pid));
while (object_parent(pid, pid, sizeof(pid))) {
xs *m2 = NULL;