about summary refs log tree commit diff
path: root/wcsmbs/wcsmbsload.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-13 16:05:28 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-13 16:05:28 +0000
commita7c378d8cdaea230b545936dede0d3aa567429b6 (patch)
tree8c8e272037828289e2a8bf926c96ce8cd0379f8c /wcsmbs/wcsmbsload.c
parent3cb0cda8a1eb5aa13140f68d8a3c11b21fdeb986 (diff)
downloadglibc-a7c378d8cdaea230b545936dede0d3aa567429b6.tar.gz
glibc-a7c378d8cdaea230b545936dede0d3aa567429b6.tar.xz
glibc-a7c378d8cdaea230b545936dede0d3aa567429b6.zip
Update.
1998-05-13  Ulrich Drepper  <drepper@cygnus.com>

	* wcsmbs/wcsmbsload.c (extract_charset_name): Fix silly bugs in
	last addition.  Patch by wkpark@chem.skku.ac.kr.
Diffstat (limited to 'wcsmbs/wcsmbsload.c')
-rw-r--r--wcsmbs/wcsmbsload.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wcsmbs/wcsmbsload.c b/wcsmbs/wcsmbsload.c
index 5373da96d2..1f4065513d 100644
--- a/wcsmbs/wcsmbsload.c
+++ b/wcsmbs/wcsmbsload.c
@@ -96,15 +96,15 @@ getfct (const char *to, const char *from)
     const char *cp = str;						      \
     char *result = NULL;						      \
 									      \
-    while (strchr ("@._+,", *cp) == NULL)				      \
+    while (strchr ("@.+,", *cp) == NULL)				      \
       ++cp;								      \
     if (*cp == '.')							      \
       {									      \
-	const char *endp = cp;						      \
+	const char *endp = ++cp;					      \
 	while (*endp != '\0' && *endp != '@')				      \
 	  ++endp;							      \
 	if (endp != cp)							      \
-	  result = strndupa (str, endp - cp);				      \
+	  result = strndupa (cp, endp - cp);				      \
       }									      \
     result;								      \
   })