projects
/
libc-test
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8dc17fa
)
fix string_memset code
author
Szabolcs Nagy
<nsz@port70.net>
Thu, 5 Mar 2015 23:10:39 +0000
(
00:10
+0100)
committer
Szabolcs Nagy
<nsz@port70.net>
Thu, 5 Mar 2015 23:10:39 +0000
(
00:10
+0100)
src/functional/string_memset.c
patch
|
blob
|
history
diff --git
a/src/functional/string_memset.c
b/src/functional/string_memset.c
index
5c0dd02
..
baea112
100644
(file)
--- a/
src/functional/string_memset.c
+++ b/
src/functional/string_memset.c
@@
-33,8
+33,8
@@
static void test_align(int align, int len)
for (i = 0; i < N; i++)
if (buf[i] != buf2[i]) {
t_error("memset(align %d, '#', %d) failed at pos %d\n", align, len, i);
- t_printf("got : '%.*s'\n", N,
s
);
- t_printf("want: '%.*s'\n", N,
want
);
+ t_printf("got : '%.*s'\n", N,
buf
);
+ t_printf("want: '%.*s'\n", N,
buf2
);
break;
}
}