Project

General

Profile

Bug #830116

S2_5 mapimg_generate_name() compiler warning with gcc9

Added by Marko Lindqvist 11 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
General
Target version:
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 11 months ago

Fix attached, going to push to all branches

#2 Updated by Marko Lindqvist 11 months ago

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

Also available in: Atom PDF