dont use ecore_strlcpy - doenst compile!(doesnt use ecore)

SVN revision: 37243
This commit is contained in:
Carsten Haitzler 2008-10-27 13:55:55 +00:00
parent 0c0c24fa7e
commit 03df6fca4c
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@
static int
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));
}