bugfix in ^x^e with last character chopping (while using with emacs),
changed strcpy to strncpy (safety?)