diff --git a/src/fileio.c b/src/fileio.c index 1da60020e12..ce05ef1a5ea 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2254,8 +2254,8 @@ duplicates what `expand-file-name' does. */) convert what we substitute into multibyte. */ while (*o) { - int c = unibyte_char_to_multibyte (*o); - o++; + int c = *o++; + c = unibyte_char_to_multibyte (c); x += CHAR_STRING (c, x); } }