[GRASS-dev] [GRASS GIS] #3802: grass77: g.proj compilation fails with proj 5.2.0

#3802: grass77: g.proj compilation fails with proj 5.2.0
---------------------+-------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.8.0
Component: Default | Version: svn-trunk
Keywords: g.proj | CPU: Unspecified
Platform: Linux |
---------------------+-------------------------
{{{
list_codes.c: In function ‘list_codes’:
list_codes.c:109:23: error: format not a string literal and no format
arguments [-Werror=format-security]
      sprintf(pathname, init_info.filename);
                        ^~~~~~~~~
list_codes.c:166:20: error: format not a string literal and no format
arguments [-Werror=format-security]
       sprintf(name, buf + 2);
                     ^~~
list_codes.c:195:7: error: format not a string literal and no format
arguments [-Werror=format-security]
        sprintf(code, buf + bufstart);
        ^~~~~~~
list_codes.c:206:7: error: format not a string literal and no format
arguments [-Werror=format-security]
        sprintf(name, buf + bufstart);
        ^~~~~~~
cc1: some warnings being treated as errors
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3802&gt;
GRASS GIS <https://grass.osgeo.org>

#3802: grass77: g.proj compilation fails with proj 5.2.0
--------------------------+-------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.8.0
Component: Default | Version: svn-trunk
Resolution: fixed | Keywords: g.proj
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------
Changes (by mmetz):

* status: new => closed
* resolution: => fixed

Comment:

In [changeset:"74314" 74314]:
{{{
#!CommitTicketReference repository="" revision="74314"
g.proj: use format with sprintf, fixes #3802
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3802#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3802: grass77: g.proj compilation fails with proj 5.2.0
--------------------------+-------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.8.0
Component: Default | Version: svn-trunk
Resolution: fixed | Keywords: g.proj
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by martinl):

Great, thanks for quick fix.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3802#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>