]> git.saurik.com Git - apple/libc.git/blobdiff - secure/strncpy_chk.c
Libc-997.90.3.tar.gz
[apple/libc.git] / secure / strncpy_chk.c
index fb2e6f0294b17a14fb2742023745eafa2ec0197f..e8f70053dc233f820315e2f1d95d7f75b4986633 100644 (file)
@@ -41,7 +41,7 @@ __strncpy_chk (char *restrict dest, char *restrict src,
   if (n == len + 1)
     n--;
 
-  if (__builtin_expect (__chk_assert_no_overlap, 1))
+  if (__builtin_expect (__chk_assert_no_overlap != 0, 1))
     __chk_overlap(dest, n, src, n);
 
   return dest;