summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-11-16 09:27:53 -0500
committerPaul Smith <psmith@gnu.org>2022-11-16 10:00:34 -0500
commit53b8f6a5da5cd8c585d0de28d7ad6a8912061c64 (patch)
treeb3a9d196a6291244b9eeeb2d448a3589942da9c0
parent6c1a6dd77c55e7302ced47cdc293292ae9400d85 (diff)
downloadmake-git-53b8f6a5da5cd8c585d0de28d7ad6a8912061c64.tar.gz
* src/main.c (main): [SV 63373] Don't use macros with memcmp()
Reported by djm <mccannd@uk.ibm.com>
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 78729de1..b31ddd4d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1503,7 +1503,7 @@ main (int argc, char **argv, char **envp)
/* If this is MAKE_RESTARTS, check to see if the "already printed
the enter statement" flag is set. */
- if (len == 13 && memcmp (envp[i], STRING_SIZE_TUPLE ("MAKE_RESTARTS")) == 0)
+ if (len == 13 && memcmp (envp[i], "MAKE_RESTARTS", CSTRLEN ("MAKE_RESTARTS")) == 0)
{
if (*ep == '-')
{