From: Francis Laniel
Before this commit, nla_strlcpy first memseted dst to 0 then wrote src into it.
This is inefficient because bytes whom number is less than src length are
written
twice.
This patch solves this issue by first writing src into dst then fill dst with
0's.
Note that, in the case
From: Francis Laniel
Before this commit, nla_strlcpy first memseted dst to 0 then wrote src into it.
This is inefficient because bytes whom number is less than src length are
written
twice.
This patch solves this issue by first writing src into dst then fill dst with
0's.
Note that, in the case