mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
ecezo: use strncat instead in send_command()
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user