summary refs log tree commit diff
path: root/iconv/gconv_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconv/gconv_conf.c')
-rw-r--r--iconv/gconv_conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c
index 307bf8a274..ece63354da 100644
--- a/iconv/gconv_conf.c
+++ b/iconv/gconv_conf.c
@@ -177,12 +177,12 @@ add_alias (char *rp, void *modules)
     ++rp;
   from = wp = rp;
   while (*rp != '\0' && !isspace (*rp))
-    *wp = toupper (*rp++);
+    *wp++ = toupper (*rp++);
   if (*rp == '\0')
     /* There is no `to' string on the line.  Ignore it.  */
     return;
-  *rp++ = '\0';
-  to = wp = rp;
+  *wp++ = '\0';
+  to = ++rp;
   while (isspace (*rp))
     ++rp;
   while (*rp != '\0' && !isspace (*rp))