summaryrefslogtreecommitdiffstats
path: root/runtime/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/stack.c')
-rw-r--r--runtime/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/stack.c b/runtime/stack.c
index 07315a90..51be05bd 100644
--- a/runtime/stack.c
+++ b/runtime/stack.c
@@ -102,7 +102,7 @@ void _stp_stack_snprint (char *str, int size, struct pt_regs *regs, int verbose,
_stp_pbuf *pb = per_cpu_ptr(Stp_pbuf, smp_processor_id());
_stp_print_flush();
_stp_stack_print(regs, verbose, pi);
- strlcpy(str, pb->buf, size < pb->len ? size : pb->len);
+ strlcpy(str, pb->buf, size < (int)pb->len ? size : (int)pb->len);
pb->len = 0;
}