From: Michael Stapelberg Date: Mon, 5 Sep 2011 20:55:31 +0000 (+0200) Subject: i3-msg: include newline at the end of the reply X-Git-Tag: 4.1~168 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=32ad9f7e3ad9b95a24a49d80a56d304b2d7ea219;p=i3%2Fi3 i3-msg: include newline at the end of the reply --- diff --git a/i3-msg/main.c b/i3-msg/main.c index d8195e08..2d7cef0e 100644 --- a/i3-msg/main.c +++ b/i3-msg/main.c @@ -245,7 +245,7 @@ int main(int argc, char *argv[]) { uint32_t reply_length; uint8_t *reply; ipc_recv_message(sockfd, message_type, &reply_length, &reply); - printf("%.*s", reply_length, reply); + printf("%.*s\n", reply_length, reply); free(reply); close(sockfd);