Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
local: Increase temp buffer size for pathname resolution
Fixes these issues: ../local.c: In function ‘add_scan_elements’: ../local.c:1701:38: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 1701 | iio_snprintf(buf, sizeof(buf), "%s/%s", path, entry->d_name); | ^~ In file included from ../local.c:10: ../iio-private.h:38:22: note: ‘snprintf’ output between 2 and 1280 bytes into a destination of size 1024 38 | #define iio_snprintf snprintf ../local.c:1701:3: note: in expansion of macro ‘iio_snprintf’ 1701 | iio_snprintf(buf, sizeof(buf), "%s/%s", path, entry->d_name); | ^~~~~~~~~~~~ ../local.c: In function ‘add_buffer_attributes’: ../local.c:1701:38: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 1701 | iio_snprintf(buf, sizeof(buf), "%s/%s", path, entry->d_name); | ^~ In file included from ../local.c:10: ../iio-private.h:38:22: note: ‘snprintf’ output between 2 and 1280 bytes into a destination of size 1024 38 | #define iio_snprintf snprintf ../local.c:1701:3: note: in expansion of macro ‘iio_snprintf’ 1701 | iio_snprintf(buf, sizeof(buf), "%s/%s", path, entry->d_name); | ^~~~~~~~~~~~ ../local.c: In function ‘local_create_context’: ../local.c:1701:38: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 1701 | iio_snprintf(buf, sizeof(buf), "%s/%s", path, entry->d_name); | ^~ In file included from ../local.c:10: ../iio-private.h:38:22: note: ‘snprintf’ output between 2 and 1280 bytes into a destination of size 1024 38 | #define iio_snprintf snprintf ../local.c:1701:3: note: in expansion of macro ‘iio_snprintf’ 1701 | iio_snprintf(buf, sizeof(buf), "%s/%s", path, entry->d_name); | ^~~~~~~~~~~~ Signed-off-by: Paul Cercueil <[email protected]>
- Loading branch information