nuttx-apps/system
Xiang Xiao d364d7a810 system: Fix nx[looper|player|recorder] warning
nxlooper.c:879:7: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
  879 |       strncpy(plooper->recorddev, pdevice, sizeof(plooper->playdev));
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxlooper.c:875:7: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
  875 |       strncpy(plooper->playdev, pdevice, sizeof(plooper->playdev));
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxlooper.c: In function 'nxlooper_loopraw':
nxlooper.c:165:52: warning: '%s' directive output may be truncated writing up to 96 bytes into a region of size 53 [-Wformat-truncation=]
  165 |           snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
      |                                                    ^~
nxlooper.c:165:11: note: 'snprintf' output between 12 and 108 bytes into a destination of size 64
  165 |           snprintf(path, sizeof(path), "/dev/audio/%s", pdevice->d_name);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxplayer.c: In function 'nxplayer_playinternal':
nxplayer.c:359:53: warning: '%s' directive output may be truncated writing up to 96 bytes into a region of size 53 [-Wformat-truncation=]
  359 |           snprintf(path,  sizeof(path), "/dev/audio/%s", pdevice->d_name);
      |                                                     ^~
nxplayer.c:359:11: note: 'snprintf' output between 12 and 108 bytes into a destination of size 64
  359 |           snprintf(path,  sizeof(path), "/dev/audio/%s", pdevice->d_name);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxrecorder.c: In function 'nxrecorder_setdevice':
nxrecorder.c:695:3: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
  695 |   strncpy(precorder->device, pdevice, sizeof(precorder->device));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxplayer.c: In function 'nxplayer_setdevice':
nxplayer.c:1686:3: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
 1686 |   strncpy(pplayer->prefdevice, pdevice, sizeof(pplayer->prefdevice));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC:  nxrecorder_main.c
nxplayer.c: In function 'nxplayer_setmediadir':
nxplayer.c:2090:3: warning: 'strncpy' specified bound 96 equals destination size [-Wstringop-truncation]
 2090 |   strncpy(pplayer->mediadir, mediadir, sizeof(pplayer->mediadir));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-23 11:05:18 +02:00
..
adb system/adb: Update to microADB to the latest version 2022-03-15 09:16:27 +02:00
argtable3 argtable3: Workaroud a clang warning 2021-06-17 07:21:52 +02:00
cdcacm Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL 2021-08-06 11:04:35 +02:00
cfgdata system/cfgdata: implement "format" option 2022-03-22 10:30:50 +08:00
cle system/cle: Make it work without CONFIG_FILE_STREAM 2021-11-30 22:06:03 -06:00
composite Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL 2021-08-06 11:04:35 +02:00
critmon system/critmon: add thread run time support 2021-07-03 01:51:29 -05:00
cu system/cu: Don't select SERIAL_TERMIOS in Kconfig 2022-02-09 18:36:25 +01:00
dhcpc system: nxstyle fixes 2021-06-11 02:42:05 -05:00
dumpstack system/dumpstack: add dump stack tool support 2021-08-01 23:56:36 -07:00
embedlog Remove CONFIG_CLOCK_MONOTONIC special code 2022-02-23 01:21:44 +08:00
flash_eraseall system: nxstyle fixes 2021-06-11 02:42:05 -05:00
hex2bin Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 16:42:32 +02:00
hexed system/hexed: fix error: 'memset' used with length equal to number of elements without multiplication by element size 2022-03-08 10:52:18 +02:00
hostname Check for too many arguments to hostname 2022-01-01 14:54:15 +01:00
i2c style: unify path to files in comment section 2022-03-09 10:37:33 +08:00
input definitions: unify MAX and MIN macro definitions 2022-03-16 23:20:17 +08:00
libuv process-spawn.c: switch uv_socketpair to uv_pipe 2022-03-04 09:00:30 +02:00
lm75 system: update licenses to Apache 2021-06-11 02:42:05 -05:00
lzf system/lzf: correct the open mode 2021-12-20 09:12:52 -06:00
mdio system: nxstyle fixes 2021-06-11 02:42:05 -05:00
netdb system: nxstyle fixes 2021-06-11 02:42:05 -05:00
nsh Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL 2021-08-06 11:04:35 +02:00
ntpc system: fix relative path CI error 2021-06-16 09:03:06 -05:00
nxlooper system: Fix nx[looper|player|recorder] warning 2022-03-23 11:05:18 +02:00
nxplayer system: Fix nx[looper|player|recorder] warning 2022-03-23 11:05:18 +02:00
nxrecorder system: Fix nx[looper|player|recorder] warning 2022-03-23 11:05:18 +02:00
ping system/ping: Don't include nuttx/lib/math.h 2022-03-19 22:24:04 +02:00
ping6 system/ping: Don't include nuttx/lib/math.h 2022-03-19 22:24:04 +02:00
popen Call posix_spawn with filename as the first argv entry 2021-06-14 07:12:54 -06:00
psmq system/psmq: update to v0.2.1 2021-05-23 23:57:25 +01:00
ramspeed rename ramspeed to ramspeed_main 2022-03-14 18:46:07 +08:00
ramtest system: update licenses to Apache 2021-06-11 02:42:05 -05:00
readline Fix readline_common.c:277:19: error: 'strncpy' destination unchanged after copying no bytes 2022-03-06 00:40:06 +08:00
sched_note note main: system/sched_note add output of string and binary 2022-01-04 20:53:08 +08:00
setlogmask apps: system: setlogmask: update licenses to Apache 2022-03-08 17:04:01 +02:00
spi system: nxstyle fixes 2021-06-11 02:42:05 -05:00
stackmonitor system: nxstyle fixes 2021-06-11 02:42:05 -05:00
system Call posix_spawn with filename as the first argv entry 2021-06-14 07:12:54 -06:00
taskset Include assert.h for DEBUGASSERT caller 2021-05-24 12:34:37 +09:00
tee Makefile: Uros Platise: update licenses to Apache 2021-06-07 21:35:33 -05:00
telnet Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
termcurses system/termcurses: Fix the compiler warning 2022-03-07 00:58:19 +08:00
trace apps/trace: add switch and dump instrumentation 2022-02-24 10:23:50 -03:00
ubloxmodem style: unify path to files in comment section 2022-03-09 10:37:33 +08:00
uniqueid system/uniqueid: Add a tool to get the board uniqueid 2022-01-22 22:48:23 +08:00
usbmsc Fix boarctl typos 2022-01-16 08:07:47 +01:00
vi system: update licenses to Apache 2021-06-11 02:42:05 -05:00
zmodem Typo fixes. 2022-01-06 10:30:41 +08:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00