We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bccdf5b commit 5aa2a30Copy full SHA for 5aa2a30
libc/src/string/memccpy.cpp
@@ -18,7 +18,7 @@ namespace LIBC_NAMESPACE_DECL {
18
LLVM_LIBC_FUNCTION(void *, memccpy,
19
(void *__restrict dest, const void *__restrict src, int c,
20
size_t count)) {
21
- if (c) {
+ if (count) {
22
LIBC_CRASH_ON_NULLPTR(dest);
23
LIBC_CRASH_ON_NULLPTR(src);
24
}
0 commit comments