From 233801f5657d9cd7edf7641491a00d913f1ed11b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Thu, 22 Feb 2024 09:46:44 -0500
Subject: [PATCH] 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.
---
 src/syncterm/bbslist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/syncterm/bbslist.c b/src/syncterm/bbslist.c
index 2493acd752..122decb74a 100644
--- a/src/syncterm/bbslist.c
+++ b/src/syncterm/bbslist.c
@@ -2520,7 +2520,7 @@ edit_comment(struct bbslist *list, char *listpath)
 	    &ch);
 	switch (ch) {
 		case '\x1b':
-			strcpy(list->comment, old);
+			SAFECOPY(list->comment, old);
 			ret = true;
 			goto done;
 		case '\t':
-- 
GitLab