Fix bug 5860: safe_strcpy gives a nasty error message for overlong strings