summaryrefslogtreecommitdiffhomepage
path: root/examples/bits2.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bits2.c')
-rw-r--r--examples/bits2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/bits2.c b/examples/bits2.c
index 95eb8b83..59e0b337 100644
--- a/examples/bits2.c
+++ b/examples/bits2.c
@@ -11,12 +11,11 @@ int main()
printf("size %" c_ZU "\n", Bits_size(&s1));
char buf[256];
- Bits_to_str(&s1, buf, 0, -1);
+ Bits_to_str(&s1, buf, 0, 256);
printf("buf: %s: count=%" c_ZU "\n", buf, Bits_count(&s1));
Bits_reset(&s1, 8);
- c_autobuf (str, char, Bits_size(&s1) + 1)
- printf(" s1: %s\n", Bits_to_str(&s1, str, 0, -1));
+ printf(" s1: %s\n", Bits_to_str(&s1, buf, 0, 256));
Bits s2 = Bits_clone(s1);