samples: Replace strlcpy() with strscpy()
[linux-2.6-microblaze.git] / samples / trace_events / trace-events-sample.h
index 1c6b843..23f923c 100644 (file)
@@ -305,7 +305,7 @@ TRACE_EVENT(foo_bar,
        ),
 
        TP_fast_assign(
-               strlcpy(__entry->foo, foo, 10);
+               strscpy(__entry->foo, foo, 10);
                __entry->bar    = bar;
                memcpy(__get_dynamic_array(list), lst,
                       __length_of(lst) * sizeof(int));