Skip to content
Snippets Groups Projects
Commit 6e11c699 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use SAFECOPY() for no reason.

Since old is a strdup() of list->comment, it's known that it will
fit, but Coverity doesn't know that.
parent 78e67f2c
No related branches found
No related tags found
No related merge requests found
...@@ -2520,7 +2520,7 @@ edit_comment(struct bbslist *list, char *listpath) ...@@ -2520,7 +2520,7 @@ edit_comment(struct bbslist *list, char *listpath)
&ch); &ch);
switch (ch) { switch (ch) {
case '\x1b': case '\x1b':
strcpy(list->comment, old); SAFECOPY(list->comment, old);
ret = true; ret = true;
goto done; goto done;
case '\t': case '\t':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment