summaryrefslogtreecommitdiffstats
path: root/stap.1.in
diff options
context:
space:
mode:
Diffstat (limited to 'stap.1.in')
-rw-r--r--stap.1.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/stap.1.in b/stap.1.in
index 13f02e13..a2b3fb47 100644
--- a/stap.1.in
+++ b/stap.1.in
@@ -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