From 614c4a516bb4d94d23bb1f7ef6a70c57638e090e Mon Sep 17 00:00:00 2001 From: Mihai Tudor Panu Date: Tue, 10 Oct 2017 10:48:17 -0700 Subject: [PATCH] ecezo: use strncat instead in send_command() Signed-off-by: Mihai Tudor Panu --- src/ecezo/ecezo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ecezo/ecezo.c b/src/ecezo/ecezo.c index f1701918..222bc26b 100644 --- a/src/ecezo/ecezo.c +++ b/src/ecezo/ecezo.c @@ -502,7 +502,7 @@ int ecezo_send_command(const ecezo_context dev, char *cmd, char *buffer, return -1; } - strcat(writeBuffer, "\r"); + strncat(writeBuffer, "\r", 2); } // for the uart this will now include the added CR, for I2C, this