From 77a4c5a5ddc9bb4bb0f7894cb4a58b080fb5957e Mon Sep 17 00:00:00 2001 From: dtkerns Date: Thu, 21 Nov 2024 22:18:30 -0700 Subject: [PATCH] warning clean up --- sc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sc.c b/sc.c index e432ba8..c79170a 100644 --- a/sc.c +++ b/sc.c @@ -345,6 +345,7 @@ main (int argc, char **argv) if (popt) *revmsg = '\0'; else { + const char *revi; strlcpy(revmsg, progname, sizeof revmsg); for (revi = rev; (*revi++) != ':'; ); /* copy after colon */ strlcat(revmsg, revi, sizeof revmsg);