Hi/2.

Not work here. I attach the fix.

Paul Eggert wrote:
> Thanks, I installed the attached somewhat-different patch. It also
> incorporates the ChangeLog fixes from your earlier patches that I forgot
> to install earlier. Please give it a try.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr

From fb08cb095bb6442903843d90caa763fcf57ac01c Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <komh@chollian.net>
Date: Sat, 16 Jan 2016 12:49:24 +0900
Subject: [PATCH] openat_proc_name: fix that last '/' is overwritten on OS/2
 kLIBC

* lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
copying a directory.
---
 lib/openat-proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/openat-proc.c b/lib/openat-proc.c
index 6fba6c2..1712340 100644
--- a/lib/openat-proc.c
+++ b/lib/openat-proc.c
@@ -125,7 +125,7 @@ openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file)
       }
 
     strcpy (result, dir);
-    result[dirlen] = '/';
+    result[dirlen++] = '/';
   }
 #endif
 
-- 
2.7.0

Reply via email to