aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 217e97ffd56..9874b4dfa48 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -714,7 +714,7 @@ concat (nargs, args, target_type, last_special)
714 } 714 }
715 toindex_byte += thislen_byte; 715 toindex_byte += thislen_byte;
716 toindex += thisleni - combined; 716 toindex += thisleni - combined;
717 SCHARS (val) -= combined; 717 STRING_SET_CHARS (val, SCHARS (val) - combined);
718 } 718 }
719 /* Copy a single-byte string to a multibyte string. */ 719 /* Copy a single-byte string to a multibyte string. */
720 else if (STRINGP (this) && STRINGP (val)) 720 else if (STRINGP (this) && STRINGP (val))
@@ -804,7 +804,7 @@ concat (nargs, args, target_type, last_special)
804 && toindex_byte > 0 804 && toindex_byte > 0
805 && count_combining (SDATA (val), 805 && count_combining (SDATA (val),
806 toindex_byte, toindex_byte - 1)) 806 toindex_byte, toindex_byte - 1))
807 SCHARS (val)--; 807 STRING_SET_CHARS (val, SCHARS (val) - 1);
808 else 808 else
809 toindex++; 809 toindex++;
810 } 810 }