diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2018-06-13 15:27:52 -0500 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2018-06-13 15:27:52 -0500 |
commit | dbe7ab10123eda8a4aaba5f66476da73e84a465f (patch) | |
tree | af463d01235c40a27b6926ac36c5e6e9c317ee14 /libloragw/src/loragw_spi.native.c | |
parent | 04036d3f88d5fa2077cbd9f3c59c1f2811b08ae3 (diff) | |
download | lora_gateway_mtac_full-dbe7ab10123eda8a4aaba5f66476da73e84a465f.tar.gz lora_gateway_mtac_full-dbe7ab10123eda8a4aaba5f66476da73e84a465f.tar.bz2 lora_gateway_mtac_full-dbe7ab10123eda8a4aaba5f66476da73e84a465f.zip |
Revert "Compiler warning fixes"
This reverts commit 04036d3f88d5fa2077cbd9f3c59c1f2811b08ae3
Diffstat (limited to 'libloragw/src/loragw_spi.native.c')
-rw-r--r-- | libloragw/src/loragw_spi.native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libloragw/src/loragw_spi.native.c b/libloragw/src/loragw_spi.native.c index 56c9d94..a146e8b 100644 --- a/libloragw/src/loragw_spi.native.c +++ b/libloragw/src/loragw_spi.native.c @@ -64,7 +64,7 @@ char* spi_dev_path = SPI_DEV_PATH; /* set SPI device */ int lgw_spi_set_path(const char *path) { if (path) { - strncpy(spi_dev_path, path, sizeof(path)-1); + spi_dev_path = path; return LGW_SPI_SUCCESS; } else { |