Bug #5112
open
error: 'strncpy' output truncated before terminating...
Added by Dirk Diggler almost 7 years ago.
Updated almost 7 years ago.
Found in version:
4.3.r912.g5fe3ebd48-1
Description
src/wrappers.c: In function 'tvhthread_create':
src/wrappers.c:200:3: error: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Werror=stringop-truncation]
strncpy(ts->name, "tvh:", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:704: /home/docmax/.cache/pacaur/tvheadend-git/src/tvheadend-git/build.linux/src/wrappers.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
:: failed to build tvheadend-git package(s)
Files
Dirk Diggler wrote:
src/wrappers.c: In function 'tvhthread_create':
src/wrappers.c:200:3: error: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Werror=stringop-truncation]
strncpy(ts->name, "tvh:", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:704: /home/docmax/.cache/pacaur/tvheadend-git/src/tvheadend-git/build.linux/src/wrappers.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
:: failed to build tvheadend-git package(s)
Same error on my system.
saen acro wrote:
And now, we will guessing,
with OS with CPU platform etc.
[...]
http://tvheadend.org/boards/4/topics/24116
Same here
Linux 4.16.7-1-ARCH #1 SMP PREEMPT Wed May 2 21:12:36 UTC 2018 x86_64 GNU/Linux
uname -a
Linux htpc 4.16.8-1-ARCH #1 SMP PREEMPT Wed May 9 11:25:02 UTC 2018 x86_64 GNU/Linux
lsb_release -a
LSB Version: 1.4
Distributor ID: Arch
Description: Arch Linux
Release: rolling
Codename: n/a
uname -a
Linux KODI 4.9.65-2-lts #1 SMP Thu May 3 00:11:50 +04 2018 x86_64 GNU/Linux
May some professional can evaluate?
Also available in: Atom
PDF