Skip to content

Commit 5aa2a30

Browse files
alyyelashramAlyElashram
authored andcommitted
count instead of c
1 parent bccdf5b commit 5aa2a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/string/memccpy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace LIBC_NAMESPACE_DECL {
1818
LLVM_LIBC_FUNCTION(void *, memccpy,
1919
(void *__restrict dest, const void *__restrict src, int c,
2020
size_t count)) {
21-
if (c) {
21+
if (count) {
2222
LIBC_CRASH_ON_NULLPTR(dest);
2323
LIBC_CRASH_ON_NULLPTR(src);
2424
}

0 commit comments

Comments
 (0)