Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This might address the following build warning/error: ``` D:/a/libserialport/libserialport/windows.c: In function 'get_port_details': D:/a/libserialport/libserialport/windows.c:457:83: error: '%s' directive output may be truncated writing up to 31 bytes into a region of size between 20 and 31 [-Werror=format-truncation=] 457 | snprintf(usb_path, sizeof(usb_path), "%d%s%s", | ^~ 458 | (int)address, *tmp ? "." : "", tmp); | ~~~ D:/a/libserialport/libserialport/windows.c:457:41: note: 'snprintf' output between 2 and 44 bytes into a destination of size 32 457 | snprintf(usb_path, sizeof(usb_path), "%d%s%s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 458 | (int)address, *tmp ? "." : "", tmp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1.exe: all warnings being treated as errors make[2]: *** [CMakeFiles/libserialport.dir/build.make:76: CMakeFiles/libserialport.dir/windows.c.obj] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/libserialport.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ```
- Loading branch information