]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* src/main.c (main): [SV 63373] Don't use macros with memcmp()
authorPaul Smith <psmith@gnu.org>
Wed, 16 Nov 2022 14:27:53 +0000 (09:27 -0500)
committerPaul Smith <psmith@gnu.org>
Wed, 16 Nov 2022 15:00:34 +0000 (10:00 -0500)
Reported by djm <mccannd@uk.ibm.com>

src/main.c

index 78729de107ede34661d8ae09109ca4437dd195f0..b31ddd4de8eec612337fdab7080ef9ae42aa7a1d 100644 (file)
@@ -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 == '-')
               {