]> sourceware.org Git - systemtap.git/commitdiff
Fix a incorrect UNKNOWN VALUE message creation in _sock_type_str function
authorPetr Muller <pmuller@redhat.com>
Mon, 1 Feb 2010 17:19:58 +0000 (18:19 +0100)
committerMark Wielaard <mjw@redhat.com>
Mon, 1 Feb 2010 19:09:39 +0000 (20:09 +0100)
tapset/aux_syscalls.stp

index a0ab557bae4452f02a6bbe3e5cce0dd372695dcb..2d0ba2108f73c8c8d6ff23c8ab6fc9169058c435 100644 (file)
@@ -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;
        }
 
This page took 0.032594 seconds and 5 git commands to generate.