From 1a11a23e5eba2caad084961a505a344a3c6e1ead Mon Sep 17 00:00:00 2001 From: Petr Muller Date: Mon, 1 Feb 2010 18:19:58 +0100 Subject: Fix a incorrect UNKNOWN VALUE message creation in _sock_type_str function --- tapset/aux_syscalls.stp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp index a0ab557b..2d0ba210 100644 --- a/tapset/aux_syscalls.stp +++ b/tapset/aux_syscalls.stp @@ -1340,7 +1340,7 @@ function _sock_type_str:string(type:long) strlcpy (THIS->__retvalue, "SOCK_PACKET", MAXSTRINGLEN); break; default: - strlcpy (THIS->__retvalue, "UNKNOWN VALUE: %d", t); + snprintf (THIS->__retvalue, MAXSTRINGLEN, "UNKNOWN VALUE: %d", t); break; } -- cgit