summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_main_loop_linux.c
diff options
context:
space:
mode:
authorHenrique Dante de Almeida <hdante@profusion.mobi>2013-01-28 17:12:50 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-02-26 10:17:28 -0300
commitf5d4ae70bd1ff8fba17ebd3e2eb6c65f354185d4 (patch)
tree4ebfba9d746fb6b730fadd2ee41824cae96b2526 /src/bin/evas/evas_cserve2_main_loop_linux.c
parent683e5d7d0848b0b044eca151c61ad2254dac2e63 (diff)
evas: Fix buffer overflows on environment variables
Diffstat (limited to 'src/bin/evas/evas_cserve2_main_loop_linux.c')
-rw-r--r--src/bin/evas/evas_cserve2_main_loop_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/evas/evas_cserve2_main_loop_linux.c b/src/bin/evas/evas_cserve2_main_loop_linux.c
index 0fd40ea942..ca156f2597 100644
--- a/src/bin/evas/evas_cserve2_main_loop_linux.c
+++ b/src/bin/evas/evas_cserve2_main_loop_linux.c
@@ -210,7 +210,7 @@ _socket_path_set(char *path)
210 env = getenv("EVAS_CSERVE2_SOCKET"); 210 env = getenv("EVAS_CSERVE2_SOCKET");
211 if (env && env[0]) 211 if (env && env[0])
212 { 212 {
213 strncpy(path, env, UNIX_PATH_MAX - 1); 213 eina_strlcpy(path, env, UNIX_PATH_MAX);
214 return; 214 return;
215 } 215 }
216 216