ecezo: use strncat instead in send_command()

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2017-10-10 10:48:17 -07:00
parent 40e73e648a
commit 614c4a516b

View File

@ -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