Project

General

Profile

Bug #5112

error: 'strncpy' output truncated before terminating...

Added by Dirk Diggler over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-05-13
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3.r912.g5fe3ebd48-1
Affected Versions:

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

mod_make_gcc_happy.patch (3.76 KB) mod_make_gcc_happy.patch Un Known, 2018-05-17 23:50

History

#1

Updated by Илья Ваганов over 6 years ago

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.

#2

Updated by saen acro over 6 years ago

And now, we will guessing,
with OS with CPU platform etc.

uname -a
lsb_release -a

http://tvheadend.org/boards/4/topics/24116

#3

Updated by Victor TW over 6 years ago

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

#4

Updated by Dirk Diggler over 6 years ago

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

#5

Updated by Илья Ваганов over 6 years ago

uname -a
Linux KODI 4.9.65-2-lts #1 SMP Thu May 3 00:11:50 +04 2018 x86_64 GNU/Linux

#6

Updated by Un Known over 6 years ago

May some professional can evaluate?

Also available in: Atom PDF