Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 694406

Summary: games-strategy/colobot-0.1.11 : /.../model_output.cpp:331:16: error: char* strncpy(char*, const char*, size_t) specified bound 20 equals destination size [-Werror=stringop-truncation]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-strategy:colobot-0.1.11:20190914-232114.log
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2019-09-14 23:59:42 UTC
/var/tmp/portage/games-strategy/colobot-0.1.11/work/colobot-colobot-gold-0.1.11-alpha/src/graphics/model/model_output.cpp: In function ‘void Gfx::ModelOutput::WriteOldModel(const Gfx::CModel&, std::ostream&)’:
/var/tmp/portage/games-strategy/colobot-0.1.11/work/colobot-colobot-gold-0.1.11-alpha/src/graphics/model/model_output.cpp:331:16: error: ‘char* strncpy(char*, const char*, size_t)’ specified bound 20 equals destination size [-Werror=stringop-truncation]
  331 |         strncpy(t.texName, triangle.tex1Name.c_str(), 20);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-libressl-20190913-195003

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository timestamp:

==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 14 Sep 2019 22:06:02 +0000

emerge -qpvO games-strategy/colobot
[ebuild  N    ] games-strategy/colobot-0.1.11  USE="openal -devbuild -doc -test -tools"
Comment 1 Toralf Förster gentoo-dev 2019-09-14 23:59:45 UTC
Created attachment 589858 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-09-14 23:59:48 UTC
Created attachment 589860 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-09-14 23:59:50 UTC
Created attachment 589862 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-09-14 23:59:53 UTC
Created attachment 589864 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-09-14 23:59:56 UTC
Created attachment 589866 [details]
games-strategy:colobot-0.1.11:20190914-232114.log
Comment 6 Toralf Förster gentoo-dev 2019-09-14 23:59:59 UTC
Created attachment 589868 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-09-15 00:00:01 UTC
Created attachment 589870 [details]
temp.tbz2
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-23 17:48:00 UTC

*** This bug has been marked as a duplicate of bug 686490 ***