* src/fileio.c (write_region): Use SCHARS, not Flength,
on a value known to be a string.
: ! NILP (append)
? "Added to `%s' (%d characters)"
: "Wrote `%s' (%d characters)");
- CALLN (Fmessage, format, visit_file,
- (STRINGP (start) ? Flength (start)
- : make_number (XINT (end) - XINT (start))));
+ EMACS_INT nchars = (STRINGP (start) ? SCHARS (start)
+ : XINT (end) - XINT (start));
+ CALLN (Fmessage, format, visit_file, make_number (nchars));
}
return Qnil;
}