summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-08-24 15:07:19 +0200
committerMark Wielaard <mjw@redhat.com>2009-08-24 15:07:19 +0200
commit5a77d0116da4bc1d5b41df3172ad78c537eff51a (patch)
tree52efd09fa95db85a4f17f7a22773a123c58f2f1e
parent48930434fcf89cfd57ae6f57b21b3b077a941be3 (diff)
downloadsystemtap-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.c2
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;