diff options
Diffstat (limited to 'common/t-iobuf.c')
-rw-r--r-- | common/t-iobuf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/t-iobuf.c b/common/t-iobuf.c index 0e6f508a5..bdeab99a4 100644 --- a/common/t-iobuf.c +++ b/common/t-iobuf.c @@ -362,10 +362,12 @@ main (int argc, char *argv[]) { iobuf_t iobuf; int rc; - char *content = "0123456789"; + char content[] = "0123456789"; int n; int c; - char buffer[strlen (content)]; + char buffer[10]; + + assert (sizeof buffer == sizeof content - 1); iobuf = iobuf_temp_with_content (content, strlen (content)); assert (iobuf); |