projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netfilter: move from strlcpy with unused retval to strscpy
[linux-2.6-microblaze.git]
/
net
/
netfilter
/
nft_osf.c
diff --git
a/net/netfilter/nft_osf.c
b/net/netfilter/nft_osf.c
index
89342cc
..
adacf95
100644
(file)
--- a/
net/netfilter/nft_osf.c
+++ b/
net/netfilter/nft_osf.c
@@
-51,7
+51,7
@@
static void nft_osf_eval(const struct nft_expr *expr, struct nft_regs *regs,
snprintf(os_match, NFT_OSF_MAXGENRELEN, "%s:%s",
data.genre, data.version);
else
- str
l
cpy(os_match, data.genre, NFT_OSF_MAXGENRELEN);
+ str
s
cpy(os_match, data.genre, NFT_OSF_MAXGENRELEN);
strncpy((char *)dest, os_match, NFT_OSF_MAXGENRELEN);
}