]> git.saurik.com Git - apple/libc.git/blobdiff - secure/strcpy_chk.c
Libc-997.90.3.tar.gz
[apple/libc.git] / secure / strcpy_chk.c
index 71872e1663188b2699ecde73f285820400239fee..9b15f226ad05aab8c29d5bdd47d6ef95da6b8750 100644 (file)
@@ -34,7 +34,7 @@ __strcpy_chk (char *restrict dest, char *restrict src, size_t dstlen)
   if (__builtin_expect (dstlen < len, 0))
     __chk_fail_overflow ();
 
-  if (__builtin_expect (__chk_assert_no_overlap, 1))
+  if (__builtin_expect (__chk_assert_no_overlap != 0, 1))
     __chk_overlap(dest, len, src, len);
 
   return dest;