englebass pushed a commit to branch master.

commit e011d5e67cef7d953f72f15950655c79331468c6
Author: Sebastian Dransfeld <[email protected]>
Date:   Wed Aug 7 11:51:32 2013 +0200

    efreet: be paranoid about '\0' termination
    
    CID: #1039721
---
 src/lib/efreet/efreet_trash.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/efreet/efreet_trash.c b/src/lib/efreet/efreet_trash.c
index a392cf1..1301b83 100644
--- a/src/lib/efreet/efreet_trash.c
+++ b/src/lib/efreet/efreet_trash.c
@@ -103,6 +103,7 @@ efreet_trash_dir_get(const char *file)
         while (strlen(buf) > 1)
         {
             strncpy(path, buf, PATH_MAX);
+            path[PATH_MAX - 1] = 0;
             dir = dirname(buf);
 
             if (stat(dir, &s_dest) == 0)

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to