From 5a77d0116da4bc1d5b41df3172ad78c537eff51a Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 24 Aug 2009 15:07:19 +0200 Subject: Initialize sdt_types testcase arr_char so that it is always null terminated. * testsuite/systemtap.base/sdt_types.c: Initialize char arr_char [], not with (too small) constant length, to make sure the string is always null terminated. --- testsuite/systemtap.base/sdt_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite/systemtap.base') diff --git a/testsuite/systemtap.base/sdt_types.c b/testsuite/systemtap.base/sdt_types.c index 2e04ec7e..42d2e6e9 100644 --- a/testsuite/systemtap.base/sdt_types.c +++ b/testsuite/systemtap.base/sdt_types.c @@ -86,7 +86,7 @@ main (int argc, char **argv) long long int * volatile long_long_int_ptr_volatile_var = &long_long_int_var; STAP_PROBE2(provider,long_long_int_ptr_volatile_var,long_long_int_ptr_volatile_var,&long_long_int_var); - char arr_char [2] = "!~"; + char arr_char [] = "!~"; STAP_PROBE1(provider,arr_char,&arr_char); struct { int int_var; -- cgit