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
um: Convert strscpy() usage to 2-argument style
[linux-2.6-microblaze.git]
/
arch
/
um
/
os-Linux
/
drivers
/
ethertap_user.c
diff --git
a/arch/um/os-Linux/drivers/ethertap_user.c
b/arch/um/os-Linux/drivers/ethertap_user.c
index
3363851
..
bdf215c
100644
(file)
--- a/
arch/um/os-Linux/drivers/ethertap_user.c
+++ b/
arch/um/os-Linux/drivers/ethertap_user.c
@@
-105,7
+105,7
@@
static int etap_tramp(char *dev, char *gate, int control_me,
sprintf(data_fd_buf, "%d", data_remote);
sprintf(version_buf, "%d", UML_NET_VERSION);
if (gate != NULL) {
- strscpy(gate_buf, gate
, sizeof(gate_buf)
);
+ strscpy(gate_buf, gate);
args = setup_args;
}
else args = nosetup_args;