dont use ecore_strlcpy - doenst compile!(doesnt use ecore)
SVN revision: 37243
This commit is contained in:
parent
0c0c24fa7e
commit
03df6fca4c
|
@ -23,7 +23,8 @@
|
||||||
static int
|
static int
|
||||||
link_ext_get(int fd, const char *name, int req, struct iwreq *rq)
|
link_ext_get(int fd, const char *name, int req, struct iwreq *rq)
|
||||||
{
|
{
|
||||||
ecore_strlcpy(rq->ifr_name, name, sizeof(rq->ifr_name));
|
strncpy(rq->ifr_name, name, sizeof(rq->ifr_name) - 1);
|
||||||
|
rq->ifr_name[sizeof(rq->ifr_name) - 1] = 0;
|
||||||
return (ioctl(fd, req, rq));
|
return (ioctl(fd, req, rq));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue