diff options
| author | 2023-04-16 20:12:44 +0200 | |
|---|---|---|
| committer | 2023-04-16 20:12:44 +0200 | |
| commit | 8205159f8ca98f525d892c02eb7dadfdf6d446d4 (patch) | |
| tree | 540cd5bdb3e578f208f8d0efef3eaaae211057ea /mastoapi.c | |
| parent | Updated documentation. (diff) | |
| download | snac2-8205159f8ca98f525d892c02eb7dadfdf6d446d4.tar.gz snac2-8205159f8ca98f525d892c02eb7dadfdf6d446d4.tar.xz snac2-8205159f8ca98f525d892c02eb7dadfdf6d446d4.zip | |
Replaced strcpy() with strncpy().
To shut up some compiler whining.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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; |