diff options
author | Dave Brolley <brolley@redhat.com> | 2010-02-02 08:28:16 -0500 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2010-02-02 08:28:16 -0500 |
commit | 743757687f9c09bf9ef84b576bc0aa0fc19dea4c (patch) | |
tree | be77bd3f7d03be09774a25f7260182941e99907a /runtime/map.h | |
parent | 241443ad36a5a2cacb9e8e6f12f808d304835f2a (diff) | |
parent | cc57beca8d9d168ef42edb1f8b43f594105dfdf2 (diff) | |
download | systemtap-steved-743757687f9c09bf9ef84b576bc0aa0fc19dea4c.tar.gz systemtap-steved-743757687f9c09bf9ef84b576bc0aa0fc19dea4c.tar.xz systemtap-steved-743757687f9c09bf9ef84b576bc0aa0fc19dea4c.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/map.h')
-rw-r--r-- | runtime/map.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/map.h b/runtime/map.h index 6c1c855b..09e46f85 100644 --- a/runtime/map.h +++ b/runtime/map.h @@ -49,10 +49,12 @@ amount of memory. Do not increase above 5. */ #define MAX_KEY_ARITY 5 #endif -/** Maximum length of strings in maps. This sets the amount of space reserved - for each string. */ +/** Maximum length of strings in maps. This sets the amount of space + reserved for each string. This should match MAXSTRINGLEN. If + MAP_STRING_LENGTH is less than MAXSTRINGLEN, a user could get + strings truncated that are stored in arrays. */ #ifndef MAP_STRING_LENGTH -#define MAP_STRING_LENGTH 256 +#define MAP_STRING_LENGTH MAXSTRINGLEN #endif /** @cond DONT_INCLUDE */ |