about summary refs log tree commit diff
path: root/wcsmbs
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs')
-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;								      \
   })