Commit bbdf84bd authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(code_convert_string): Use make_string_from_bytes.

parent cc5bf9eb
...@@ -4388,8 +4388,8 @@ code_convert_string (str, coding, encodep, nocopy) ...@@ -4388,8 +4388,8 @@ code_convert_string (str, coding, encodep, nocopy)
if (encodep) if (encodep)
str = make_unibyte_string (buf, len + coding->produced); str = make_unibyte_string (buf, len + coding->produced);
else else
str = make_multibyte_string (buf, len + coding->produced_char, str = make_string_from_bytes (buf, len + coding->produced_char,
len + coding->produced); len + coding->produced);
return str; return str;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment