diff options
author | fche <fche> | 2005-09-03 18:31:35 +0000 |
---|---|---|
committer | fche <fche> | 2005-09-03 18:31:35 +0000 |
commit | e479d1f47a8d83737418674bb03f780220bc4ff4 (patch) | |
tree | 41cb19775eb8625f40936079342c56eed73e2df9 | |
parent | f9eba66ef3ec406f883caebed75cdeaa042f6b33 (diff) | |
download | systemtap-steved-e479d1f47a8d83737418674bb03f780220bc4ff4.tar.gz systemtap-steved-e479d1f47a8d83737418674bb03f780220bc4ff4.tar.xz systemtap-steved-e479d1f47a8d83737418674bb03f780220bc4ff4.zip |
none
-rw-r--r-- | stap.1.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -362,8 +362,8 @@ function add_one (val) %{ THIS->__retvalue = THIS->val + 1; %} function add_one_str (val) %{ - strncpy (THIS->__retvalue, THIS->val, MAXSTRINGLEN); - strncat (THIS->__retvalue, "one", MAXSTRINGLEN); + strlcpy (THIS->__retvalue, THIS->val, MAXSTRINGLEN); + strlcat (THIS->__retvalue, "one", MAXSTRINGLEN); %} .ESAMPLE The function argument and return value types have to be inferred by |