diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-08-24 15:07:19 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-08-24 15:07:19 +0200 |
commit | 5a77d0116da4bc1d5b41df3172ad78c537eff51a (patch) | |
tree | 52efd09fa95db85a4f17f7a22773a123c58f2f1e | |
parent | 48930434fcf89cfd57ae6f57b21b3b077a941be3 (diff) | |
download | systemtap-steved-5a77d0116da4bc1d5b41df3172ad78c537eff51a.tar.gz systemtap-steved-5a77d0116da4bc1d5b41df3172ad78c537eff51a.tar.xz systemtap-steved-5a77d0116da4bc1d5b41df3172ad78c537eff51a.zip |
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.
-rw-r--r-- | testsuite/systemtap.base/sdt_types.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |