Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #830116

S2_5 mapimg_generate_name() compiler warning with gcc9

Added by Marko Lindqvist over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
General
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

../../../src/common/mapimg.c: In function ‘mapimg_generate_name’:
../../../src/common/mapimg.c:1765:7: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
1765 | cat_snprintf(mapstr, sizeof(mapstr), "%s", mapimg_layer_name(layer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This only started happening now in both Debian Bullseye and Sid after some system update. It also happens only with S2_5 though the code in question seem identical in later branches.

History

#1 Updated by Marko Lindqvist over 1 year ago

Fix attached, going to push to all branches

#2 Updated by Marko Lindqvist over 1 year ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF