fix sendPrompt()

a extra '\0' will be sent when sizeof() is used