mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 09:20:39 +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:
parent
40e73e648a
commit
614c4a516b
@ -502,7 +502,7 @@ int ecezo_send_command(const ecezo_context dev, char *cmd, char *buffer,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
strcat(writeBuffer, "\r");
|
strncat(writeBuffer, "\r", 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
// for the uart this will now include the added CR, for I2C, this
|
// for the uart this will now include the added CR, for I2C, this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user