diff options
author | default <nobody@localhost> | 2023-04-16 20:12:44 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-04-16 20:12:44 +0200 |
commit | 8205159f8ca98f525d892c02eb7dadfdf6d446d4 (patch) | |
tree | 540cd5bdb3e578f208f8d0efef3eaaae211057ea /data.c | |
parent | 80cd4eaada3836fb94f55b82a6e2a70d8f83fdb3 (diff) |
Replaced strcpy() with strncpy().
To shut up some compiler whining.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1017,7 +1017,7 @@ xs_list *timeline_top_level(snac *snac, xs_list *list) while (xs_list_iter(&p, &v)) { char line[256] = ""; - strcpy(line, v); + strncpy(line, v, sizeof(line)); for (;;) { char line2[256]; @@ -1031,7 +1031,7 @@ xs_list *timeline_top_level(snac *snac, xs_list *list) break; /* it's here! try again with its own parent */ - strcpy(line, line2); + strncpy(line, line2, sizeof(line)); } xs_set_add(&seen, line); |