bugfix in ^x^e with last character chopping (while using with emacs),

changed strcpy to strncpy (safety?)

IDK if this fix is needed. Let the devs decide.
AFAIK vim appends a newline at the end of file and doesn't show it to the user.
Emacs doesn't do that so the last significant char gets chopped off.
Needs more testing!