Skip to content

Commit 217d62c

Browse files
committed
Fix bzero in 01-cpa/24-library_functions
1 parent e701d44 commit 217d62c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/regression/01-cpa/24-library_functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void test_memset() {
2323
void test_bzero() {
2424
int n = 1;
2525
bzero(&n, sizeof(int));
26-
assert(n == 1); // UNKNOWN!
26+
assert(n == 0);
2727
}
2828

2929
void test_getopt() {
@@ -52,7 +52,7 @@ void test_free() {
5252
void test_memcpy() {
5353
int dest = 0;
5454
int src = 1;
55-
55+
5656
memcpy(&dest, &src, sizeof(int));
5757

5858
assert(dest == 0); // UNKNOWN!

0 commit comments

Comments
 (0)