aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-05-18 00:59:38 +0000
committerKenichi Handa1998-05-18 00:59:38 +0000
commit44893c8f3a0286aa06f0c4f7a5e9036da60d1683 (patch)
treec14ab04809be080cbd28d857ddcb4c7e8ba2c034 /src
parent06274af57fcff96b71346897d2e14f3412798422 (diff)
downloademacs-44893c8f3a0286aa06f0c4f7a5e9036da60d1683.tar.gz
emacs-44893c8f3a0286aa06f0c4f7a5e9036da60d1683.zip
(concat): Fix bug in concatinating a list of multibyte and
unibyte characters.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fns.c b/src/fns.c
index 404f9976544..51eec4d472c 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -731,8 +731,8 @@ concat (nargs, args, target_type, last_special)
731 CHECK_NUMBER (elt, 0); 731 CHECK_NUMBER (elt, 0);
732 if (SINGLE_BYTE_CHAR_P (XINT (elt))) 732 if (SINGLE_BYTE_CHAR_P (XINT (elt)))
733 { 733 {
734 XSTRING (val)->data[toindex++] = XINT (elt); 734 XSTRING (val)->data[toindex_byte++] = XINT (elt);
735 toindex_byte++; 735 toindex++;
736 } 736 }
737 else 737 else
738 /* If we have any multibyte characters, 738 /* If we have any multibyte characters,