summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_client.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_client.c
parent683e5d7d0848b0b044eca151c61ad2254dac2e63 (diff)
evas: Fix buffer overflows on environment variables
Diffstat (limited to 'src/bin/evas/evas_cserve2_client.c')
-rw-r--r--src/bin/evas/evas_cserve2_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/evas/evas_cserve2_client.c b/src/bin/evas/evas_cserve2_client.c
index 9d63b87abf..91999f0ef0 100644
--- a/src/bin/evas/evas_cserve2_client.c
+++ b/src/bin/evas/evas_cserve2_client.c
@@ -369,7 +369,7 @@ int main(void)
369 (int)getuid()); 369 (int)getuid());
370 env = buf; 370 env = buf;
371 } 371 }
372 strncpy(remote.sun_path, env, UNIX_PATH_MAX - 1); 372 eina_strlcpy(remote.sun_path, env, UNIX_PATH_MAX);
373 len = strlen(remote.sun_path) + sizeof(remote.sun_family); 373 len = strlen(remote.sun_path) + sizeof(remote.sun_family);
374 if (connect(s, (struct sockaddr *)&remote, len) == -1) 374 if (connect(s, (struct sockaddr *)&remote, len) == -1)
375 { 375 {