This commit is contained in:
Doridian committed 2022-06-11 16:16:56 -07:00
1 parent 1a4437550b
commit 83943aafc8
21 files changed
+123 -119

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed) {
return INVALID_SERIAL_PORT;
}
// Copy the input "com?" to "\\.\COM?" format
sprintf(acPortName, "\\\\.\\%s", pcPortName);
snprintf(acPortName, sizeof(acPortName), "\\\\.\\%s", pcPortName);
_strupr(acPortName);
// Try to open the serial port