about summary refs log tree commit diff
path: root/iconv/gconv_conf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-23 20:39:41 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-23 20:39:41 +0000
commitf4942eca1e4db6087bd128e6bce3e490c3ff89f2 (patch)
tree22d51996c383c083ecb3908634fb03f7ea188811 /iconv/gconv_conf.c
parent91ca07d8ea46ca59264f0478bf7a546a013933c7 (diff)
downloadglibc-f4942eca1e4db6087bd128e6bce3e490c3ff89f2.tar.gz
glibc-f4942eca1e4db6087bd128e6bce3e490c3ff89f2.tar.xz
glibc-f4942eca1e4db6087bd128e6bce3e490c3ff89f2.zip
Update.
2000-08-23  Ulrich Drepper  <drepper@redhat.com>

	* iconv/gconv_conf.c (add_module): Remove some unneeded code to
	avoid adding double slashes.
Diffstat (limited to 'iconv/gconv_conf.c')
-rw-r--r--iconv/gconv_conf.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c
index 6d57ca53bc..eb0ea7181e 100644
--- a/iconv/gconv_conf.c
+++ b/iconv/gconv_conf.c
@@ -276,9 +276,6 @@ add_module (char *rp, const char *directory, size_t dir_len, void **modules,
     return;
   if (module[0] == '/')
     dir_len = 0;
-  else
-    /* Increment by one for the slash.  */
-    ++dir_len;
 
   /* See whether we must add the ending.  */
   need_ext = 0;
@@ -318,11 +315,8 @@ add_module (char *rp, const char *directory, size_t dir_len, void **modules,
       if (dir_len == 0)
 	tmp = (char *) new_module->module_name;
       else
-	{
-	  tmp = __mempcpy ((char *) new_module->module_name,
-			   directory, dir_len - 1);
-	  *tmp++ = '/';
-	}
+	tmp = __mempcpy ((char *) new_module->module_name,
+			 directory, dir_len);
 
       tmp = __mempcpy (tmp, module, wp - module);