| ~~~~~~~^~~~~~~~~ devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::start_measurement()': devices/runtime_pm.cpp:69:42: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 69 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:69:10: note: 'snprintf' output between 30 and 4125 bytes into a destination of size 4096 69 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:76:42: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 76 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:76:10: note: 'snprintf' output between 27 and 4122 bytes into a destination of size 4096 76 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::end_measurement()': devices/runtime_pm.cpp:89:42: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 89 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:89:10: note: 'snprintf' output between 30 and 4125 bytes into a destination of size 4096 89 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:96:42: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 96 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:96:10: note: 'snprintf' output between 27 and 4122 bytes into a destination of size 4096 96 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC paintcmap.lo CXX devices/powertop-thinkpad-light.o CXX devices/powertop-usb.o CC parseprotos.lo CXX measurement/powertop-acpi.o CC partify.lo CC partition.lo In file included from devices/../parameters/parameters.h:35, from devices/usb.h:31, from devices/usb.cpp:25: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'usbdevice::usbdevice(const char*, const char*, const char*)' at devices/usb.cpp:47:11: devices/../parameters/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'usbdevice::usbdevice(const char*, const char*, const char*)' at devices/usb.cpp:49:11: devices/../parameters/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'usbdevice::usbdevice(const char*, const char*, const char*)' at devices/usb.cpp:50:11: devices/../parameters/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ devices/usb.cpp: In member function 'virtual void usbdevice::start_measurement()': devices/usb.cpp:129:42: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 129 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:129:10: note: 'snprintf' output between 23 and 4118 bytes into a destination of size 4096 129 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:136:42: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 136 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:136:10: note: 'snprintf' output between 26 and 4121 bytes into a destination of size 4096 136 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX measurement/powertop-extech.o devices/usb.cpp: In member function 'virtual void usbdevice::end_measurement()': devices/usb.cpp:149:42: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 149 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:149:10: note: 'snprintf' output between 23 and 4118 bytes into a destination of size 4096 149 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:156:42: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 156 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:156:10: note: 'snprintf' output between 26 and 4121 bytes into a destination of size 4096 156 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from measurement/acpi.cpp:33: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 256]', inlined from 'acpi_power_meter::acpi_power_meter(const char*)' at measurement/acpi.cpp:42:11: measurement/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ devices/usb.cpp: In function 'void create_all_usb_devices_callback(const char*)': devices/usb.cpp:226:48: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 226 | snprintf(device_name, sizeof(device_name), "%s/power/active_duration", filename); | ^~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:226:10: note: 'snprintf' output between 23 and 4118 bytes into a destination of size 4096 226 | snprintf(device_name, sizeof(device_name), "%s/power/active_duration", filename); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:230:48: warning: '/idVendor' directive output may be truncated writing 9 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 230 | snprintf(device_name, sizeof(device_name), "%s/idVendor", filename); | ^~~~~~~~~ devices/usb.cpp:230:10: note: 'snprintf' output between 10 and 4105 bytes into a destination of size 4096 230 | snprintf(device_name, sizeof(device_name), "%s/idVendor", filename); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:235:48: warning: '/idProduct' directive output may be truncated writing 10 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 235 | snprintf(device_name, sizeof(device_name), "%s/idProduct", filename); | ^~~~~~~~~~ devices/usb.cpp:235:10: note: 'snprintf' output between 11 and 4106 bytes into a destination of size 4096 235 | snprintf(device_name, sizeof(device_name), "%s/idProduct", filename); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC pdfio1.lo CC pdfio1stub.lo CXX measurement/powertop-measurement.o CC pdfio2.lo In file included from measurement/extech.cpp:57: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 256]', inlined from 'extech_power_meter::extech_power_meter(const char*)' at measurement/extech.cpp:272:11: measurement/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ CXX measurement/powertop-sysfs.o CXX measurement/powertop-opal-sensors.o In file included from measurement/sysfs.cpp:27: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 256]', inlined from 'sysfs_power_meter::sysfs_power_meter(const char*)' at measurement/sysfs.cpp:36:11: measurement/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ CC pdfio2stub.lo CXX parameters/powertop-learn.o CC pix1.lo measurement/opal-sensors.cpp: In constructor 'opal_sensors_power_meter::opal_sensors_power_meter(const char*)': measurement/opal-sensors.cpp:34:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 34 | strncpy(name, power_supply_name, sizeof(name)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC pix2.lo CXX parameters/powertop-parameters.o CXX parameters/powertop-persistent.o CC pix3.lo CXX perf/powertop-perf.o CC pix4.lo CC pix5.lo CXX perf/powertop-perf_bundle.o CXX process/powertop-do_process.o CXX process/powertop-interrupt.o CC pixabasic.lo In file included from process/interrupt.cpp:30: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 32]', inlined from 'interrupt::interrupt(const char*, int)' at process/interrupt.cpp:52:11: process/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 32 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ CC pixacc.lo CC pixafunc1.lo CC pixafunc2.lo CXX process/powertop-powerconsumer.o CC pixalloc.lo CC pixarith.lo CC pixcomp.lo CXX process/powertop-process.o CXX process/powertop-processdevice.o CC pixconv.lo CC pixlabel.lo In file included from process/process.cpp:36: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 16]', inlined from 'process::process(const char*, int, int)' at process/process.cpp:94:11: process/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 16 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ process/process.cpp: In constructor 'process::process(const char*, int, int)': process/process.cpp:147:11: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying between 0 and 255 bytes from a string of length 4096 [-Wstringop-truncation] 147 | strncpy(desc + pos, line, sz); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ CXX process/powertop-timer.o CXX process/powertop-work.o CC pixtiling.lo CXX report/powertop-report-data-html.o In file included from process/timer.cpp:33: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 32]', inlined from 'timer::timer(long unsigned int)' at process/timer.cpp:64:11: process/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 32 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In file included from process/work.cpp:33: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 32]', inlined from 'work::work(long unsigned int)' at process/work.cpp:41:11: process/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 32 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 32]', inlined from 'timer::timer(long unsigned int)' at process/timer.cpp:64:11, inlined from 'timer* find_create_timer(uint64_t)' at process/timer.cpp:139:30: process/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 32 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ CXX report/powertop-report-formatter-base.o In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 32]', inlined from 'work::work(long unsigned int)' at process/work.cpp:41:11, inlined from 'work* find_create_work(uint64_t)' at process/work.cpp:127:28: process/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 32 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ CC pngio.lo CC pngiostub.lo CC pnmio.lo CXX report/powertop-report-formatter-csv.o CXX report/powertop-report-formatter-html.o CC pnmiostub.lo CC projective.lo CC psio1.lo CXX report/powertop-report-maker.o CXX report/powertop-report.o CC psio1stub.lo CXX tuning/powertop-bluetooth.o CC psio2.lo CC psio2stub.lo CC ptabasic.lo CXX tuning/powertop-ethernet.o CC tuning/powertop-iw.o CC ptafunc1.lo CXX tuning/powertop-runtime.o CC ptafunc2.lo CC ptra.lo In file included from tuning/tunable.h:30, from tuning/ethernet.cpp:27: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'ethernet_tunable::ethernet_tunable(const char*)' at tuning/ethernet.cpp:53:11: tuning/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ CC quadtree.lo CXX tuning/powertop-tunable.o tuning/runtime.cpp: In constructor 'runtime_tunable::runtime_tunable(const char*, const char*, const char*, const char*)': tuning/runtime.cpp:86:61: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 86 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", runtime_path); | ^~ tuning/runtime.cpp:86:10: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 86 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", runtime_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:87:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 87 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", runtime_path); | ^~ tuning/runtime.cpp:87:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 87 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", runtime_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp: In function 'void add_runtime_tunables(const char*)': tuning/runtime.cpp:166:65: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3822 and 4077 [-Wformat-truncation=] 166 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s/power/control", bus, entry->d_name, port); | ^~ ~~~~ tuning/runtime.cpp:166:12: note: 'snprintf' output 34 or more bytes (assuming 4384) into a destination of size 4096 166 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s/power/control", bus, entry->d_name, port); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:171:65: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3822 and 4077 [-Wformat-truncation=] 171 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s", bus, entry->d_name, port); | ^~ ~~~~ tuning/runtime.cpp:171:12: note: 'snprintf' output 20 or more bytes (assuming 4370) into a destination of size 4096 171 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s", bus, entry->d_name, port); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:192:53: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4085 [-Wformat-truncation=] 192 | snprintf(filename, sizeof(filename), "/sys/block/%s/device", port); | ^~ ~~~~ tuning/runtime.cpp:192:12: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 192 | snprintf(filename, sizeof(filename), "/sys/block/%s/device", port); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC queue.lo CC rank.lo CXX tuning/powertop-tuning.o CXX tuning/powertop-tuningsysfs.o In file included from tuning/tunable.h:30, from tuning/tunable.cpp:27: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'tunable::tunable(const char*, double, const char*, const char*, const char*)' at tuning/tunable.cpp:38:11: tuning/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 128]', inlined from 'tunable::tunable(const char*, double, const char*, const char*, const char*)' at tuning/tunable.cpp:39:11: tuning/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 128 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 128]', inlined from 'tunable::tunable(const char*, double, const char*, const char*, const char*)' at tuning/tunable.cpp:40:11: tuning/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 128 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 128]', inlined from 'tunable::tunable(const char*, double, const char*, const char*, const char*)' at tuning/tunable.cpp:41:11: tuning/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 128 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ CC rbtree.lo CC readbarcode.lo CXX tuning/powertop-tuningusb.o CC readfile.lo In file included from tuning/tunable.h:30, from tuning/tuningsysfs.cpp:27: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)' at tuning/tuningsysfs.cpp:47:11: tuning/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)' at tuning/tuningsysfs.cpp:48:11: tuning/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ tuning/tuningsysfs.cpp: In constructor 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)': tuning/tuningsysfs.cpp:50:52: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] 50 | snprintf(toggle_good, sizeof(toggle_good), "echo '%s' > '%s';", target_value, sysfs_path); | ^~ tuning/tuningsysfs.cpp:50:10: note: 'snprintf' output between 14 and 8204 bytes into a destination of size 4096 50 | snprintf(toggle_good, sizeof(toggle_good), "echo '%s' > '%s';", target_value, sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningsysfs.cpp:51:50: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] 51 | snprintf(toggle_bad, sizeof(toggle_bad), "echo '%s' > '%s';", bad_value, sysfs_path); | ^~ tuning/tuningsysfs.cpp:51:10: note: 'snprintf' output between 14 and 8204 bytes into a destination of size 4096 51 | snprintf(toggle_bad, sizeof(toggle_bad), "echo '%s' > '%s';", bad_value, sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX tuning/powertop-tuningi2c.o CC recogbasic.lo tuning/tuningusb.cpp: In constructor 'usb_tunable::usb_tunable(const char*, const char*)': tuning/tuningusb.cpp:77:61: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 77 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", usb_path); | ^~ tuning/tuningusb.cpp:77:10: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 77 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningusb.cpp:78:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 78 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", usb_path); | ^~ tuning/tuningusb.cpp:78:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 78 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC recogdid.lo CXX tuning/powertop-wifi.o CXX wakeup/powertop-wakeup.o tuning/tuningi2c.cpp: In constructor 'i2c_tunable::i2c_tunable(const char*, const char*, bool)': tuning/tuningi2c.cpp:61:61: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 61 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", i2c_path); | ^~ tuning/tuningi2c.cpp:61:10: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 61 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", i2c_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningi2c.cpp:62:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 62 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", i2c_path); | ^~ tuning/tuningi2c.cpp:62:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 62 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", i2c_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX wakeup/powertop-waketab.o CC recogident.lo In file included from wakeup/wakeup.cpp:30: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'wakeup::wakeup(const char*, double, const char*, const char*)' at wakeup/wakeup.cpp:39:18: wakeup/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 128]', inlined from 'wakeup::wakeup(const char*, double, const char*, const char*)' at wakeup/wakeup.cpp:40:18: wakeup/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 128 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 128]', inlined from 'wakeup::wakeup(const char*, double, const char*, const char*)' at wakeup/wakeup.cpp:41:18: wakeup/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 128 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ CXX wakeup/powertop-wakeup_ethernet.o In file included from tuning/tunable.h:30, from tuning/wifi.cpp:27: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'wifi_tunable::wifi_tunable(const char*)' at tuning/wifi.cpp:47:11: tuning/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ In file included from tuning/tunable.h:30, from tuning/wifi.cpp:27: tuning/wifi.cpp: In constructor 'wifi_tunable::wifi_tunable(const char*)': tuning/wifi.cpp:48:18: warning: '%s' directive writing up to 4095 bytes into a region of size 4060 [-Wformat-overflow=] 48 | sprintf(desc, _("Wireless Power Saving for interface %s"), iface); tuning/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ tuning/wifi.cpp:48:9: note: 'sprintf' output between 37 and 4132 bytes into a destination of size 4096 48 | sprintf(desc, _("Wireless Power Saving for interface %s"), iface); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/wifi.cpp:50:53: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] 50 | snprintf(toggle_good, sizeof(toggle_good), "iw dev %s set power_save on", iface); | ^~ tuning/wifi.cpp:50:10: note: 'snprintf' output between 26 and 4121 bytes into a destination of size 4096 50 | snprintf(toggle_good, sizeof(toggle_good), "iw dev %s set power_save on", iface); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/wifi.cpp:51:51: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] 51 | snprintf(toggle_bad, sizeof(toggle_bad), "iw dev %s set power_save off", iface); | ^~ tuning/wifi.cpp:51:10: note: 'snprintf' output between 27 and 4122 bytes into a destination of size 4096 51 | snprintf(toggle_bad, sizeof(toggle_bad), "iw dev %s set power_save off", iface); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC recogtrain.lo CC regutils.lo CXX wakeup/powertop-wakeup_usb.o In file included from wakeup/wakeup_ethernet.cpp:44: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)' at wakeup/wakeup_ethernet.cpp:50:11: wakeup/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ wakeup/wakeup_ethernet.cpp: In constructor 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)': wakeup/wakeup_ethernet.cpp:53:68: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4078 [-Wformat-truncation=] 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", eth_path); | ^~ wakeup/wakeup_ethernet.cpp:53:10: note: 'snprintf' output between 21 and 4116 bytes into a destination of size 4096 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", eth_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_ethernet.cpp:54:71: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4077 [-Wformat-truncation=] 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", eth_path); | ^~ wakeup/wakeup_ethernet.cpp:54:10: note: 'snprintf' output between 22 and 4117 bytes into a destination of size 4096 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", eth_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC rop.lo CC roplow.lo CC rotate.lo CC rotateam.lo CC rotateorth.lo In file included from wakeup/wakeup_usb.cpp:44: In function 'void pt_strcpy(char (&)[N], const char*) [with long unsigned int N = 4096]', inlined from 'usb_wakeup::usb_wakeup(const char*, const char*)' at wakeup/wakeup_usb.cpp:50:11: wakeup/../lib.h:78:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ~~~~~~~^~~~~~~~~ wakeup/wakeup_usb.cpp: In constructor 'usb_wakeup::usb_wakeup(const char*, const char*)': wakeup/wakeup_usb.cpp:53:68: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4078 [-Wformat-truncation=] 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", usb_path); | ^~ wakeup/wakeup_usb.cpp:53:10: note: 'snprintf' output between 21 and 4116 bytes into a destination of size 4096 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_usb.cpp:54:71: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4077 [-Wformat-truncation=] 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", usb_path); | ^~ wakeup/wakeup_usb.cpp:54:10: note: 'snprintf' output between 22 and 4117 bytes into a destination of size 4096 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXXLD powertop CC rotateshear.lo CC runlength.lo CC sarray1.lo CC sarray2.lo CC scale1.lo make[4]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13/src' make[3]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13/src' Making all in po make[3]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13/po' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13/po' Making all in doc make[3]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13/doc' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13/doc' Making all in scripts/bash-completion make[3]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13/scripts/bash-completion' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13/scripts/bash-completion' make[3]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13' make[3]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13' make[2]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13' make[1]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/powertop-2.13' CC scale2.lo CC seedfill.lo CC sel1.lo CC sel2.lo CC selgen.lo CC shear.lo CC skew.lo CC spixio.lo CC stack.lo CC stringcode.lo CC strokes.lo CC sudoku.lo CC textops.lo CC tiffio.lo CC tiffiostub.lo CC utils1.lo CC utils2.lo CC warper.lo CC watershed.lo CC webpio.lo CC webpiostub.lo CC webpanimio.lo CC webpanimiostub.lo CC writefile.lo CC zlibmem.lo CC zlibmemstub.lo CCLD liblept.la make[3]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/leptonica-1.82.0/src' Making all in prog make[3]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/leptonica-1.82.0/prog' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/leptonica-1.82.0/prog' make[3]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/leptonica-1.82.0' make[3]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/leptonica-1.82.0' make[2]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/leptonica-1.82.0' make[1]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/leptonica-1.82.0' make: Leaving directory '/home/buildroot/autobuild/instance-3/buildroot'