[GRASS-dev] Re: [GRASS GIS] #965: Location wizard: doesn't create MYNAME

GRASS GIS trac at osgeo.org
Tue Dec 28 15:53:56 EST 2010


#965: Location wizard: doesn't create MYNAME
---------------------+------------------------------------------------------
  Reporter:  hamish  |       Owner:  martinl            
      Type:  defect  |      Status:  reopened           
  Priority:  normal  |   Milestone:  6.4.1              
 Component:  wxGUI   |     Version:  svn-releasebranch64
Resolution:          |    Keywords:  location wizard    
  Platform:  All     |         Cpu:  All                
---------------------+------------------------------------------------------

Comment(by hamish):

 perhaps wrongly applied, but G_myname() is using GNAME_MAX for the max
 length (256 chars in gis.h) of the description. So besides having the
 newlines removed it should be cut at char 255-1 for the null
 terminator(?). (or better: can python access the #defined values in the C
 include files directly as swig could?)


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/965#comment:4>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list