(int)getuid());
env = buf;
}
- strncpy(remote.sun_path, env, UNIX_PATH_MAX - 1);
+ eina_strlcpy(remote.sun_path, env, UNIX_PATH_MAX);
len = strlen(remote.sun_path) + sizeof(remote.sun_family);
if (connect(s, (struct sockaddr *)&remote, len) == -1)
{
env = getenv("EVAS_CSERVE2_SOCKET");
if (env && env[0])
{
- strncpy(path, env, UNIX_PATH_MAX - 1);
+ eina_strlcpy(path, env, UNIX_PATH_MAX);
return;
}
env = getenv("EVAS_CSERVE2_SOCKET");
if (env && env[0])
{
- strncpy(path, env, UNIX_PATH_MAX - 1);
+ eina_strlcpy(path, env, UNIX_PATH_MAX);
return;
}
env = getenv("EVAS_CSERVE2_SOCKET");
if (env && env[0])
{
- strncpy(path, env, UNIX_PATH_MAX - 1);
+ eina_strlcpy(path, env, UNIX_PATH_MAX);
return;
}
env = getenv("EVAS_CSERVE2_SOCKET");
if (env && env[0])
{
- strncpy(path, env, UNIX_PATH_MAX - 1);
+ eina_strlcpy(path, env, UNIX_PATH_MAX);
return;
}