zmk/app
Okke Formsma 5e8794b4e1 fix(core): Fix overflow in setting_name sprintf
With newlib_libc enabled, a warning was printed for this sprintf.
The settings_name may expand to 17 characters instead of the available
15.

Fixes #808.

Full warning:

[49/272] Building C object CMakeFiles/app.dir/src/ble.c.obj
In file included from /home/okke/.local/zephyr-sdk-0.11.2/arm-zephyr-eabi/arm-zephyr-eabi/sys-include/stdio.h:800,
                 from ../../src/ble.c:12:
../../src/ble.c: In function 'set_profile_address':
../../src/ble.c:118:27: warning: '%d' directive writing between 1 and 3 bytes into a region of size 2 [-Wformat-overflow=]
  118 |     sprintf(setting_name, "ble/profiles/%d", index);
      |                           ^~~~~~~~~~~~~~~~~
../../src/ble.c:118:41: note: format string is defined here
  118 |     sprintf(setting_name, "ble/profiles/%d", index);
      |                                         ^~
In file included from /home/okke/.local/zephyr-sdk-0.11.2/arm-zephyr-eabi/arm-zephyr-eabi/sys-include/stdio.h:800,
                 from ../../src/ble.c:12:
../../src/ble.c:118:27: note: directive argument in the range [0, 255]
  118 |     sprintf(setting_name, "ble/profiles/%d", index);
      |                           ^~~~~~~~~~~~~~~~~
../../src/ble.c:118:5: note: '__builtin___sprintf_chk' output between 15 and 17 bytes into a destination of size 15
  118 |     sprintf(setting_name, "ble/profiles/%d", index);
      |     ^~~~~~~
2021-05-25 21:21:32 +02:00
..
boards fix(boards): Proper BlueMicro840_V1 &pro_micro_a map for A10 (#733) 2021-03-24 13:21:40 -04:00
cmake build: set zmk_config.cmake cmake_minimum_required to VERSION 3.15 2020-11-20 22:24:29 -05:00
drivers fix(kscan): Proper direct wire warning message. 2021-03-15 00:39:29 -04:00
dts feature(hold-tap): Retro tapping 2021-02-24 07:24:27 -05:00
include added battery.h, last_state_of_charge to uint8_t 2021-03-10 18:07:18 -05:00
scripts chore: standardize # style headers 2021-01-06 17:00:44 -05:00
src fix(core): Fix overflow in setting_name sprintf 2021-05-25 21:21:32 +02:00
tests fix(behaviors): Fix sticky keys quick-release for normal keypresses 2021-05-09 07:52:41 -04:00
.gitignore Removed development files 2020-08-29 11:53:53 -07:00
CMakeLists.txt feat: Add WPM calculator and display widget 2021-01-23 18:38:31 -05:00
Kconfig fix(core): Enable sensor by default 2021-02-08 10:50:44 -05:00
prj.conf Removed development files 2020-08-29 11:53:53 -07:00
run-test.sh feat(tests): Override test parallelism w/ J=8 environment. 2021-05-05 00:56:05 -04:00
west.yml fix(west): Restore atmel west module. 2020-12-29 23:30:30 -05:00