[GRASS-SVN] r63515 - grass/trunk/display/d.mon

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 12 14:00:17 PST 2014


Author: wenzeslaus
Date: 2014-12-12 14:00:16 -0800 (Fri, 12 Dec 2014)
New Revision: 63515

Modified:
   grass/trunk/display/d.mon/start.c
Log:
d.mon: use GPATH_MAX rather than PATH_MAX (probably typo in r63457, breaks compilation on Mac OS X 10.10)

Modified: grass/trunk/display/d.mon/start.c
===================================================================
--- grass/trunk/display/d.mon/start.c	2014-12-12 21:17:20 UTC (rev 63514)
+++ grass/trunk/display/d.mon/start.c	2014-12-12 22:00:16 UTC (rev 63515)
@@ -49,7 +49,7 @@
     if (!strchr(output_name, HOST_DIRSEP)) { /* relative path */
         char *ptr;
         
-        if (!getcwd(output_path, PATH_MAX))
+        if (!getcwd(output_path, GPATH_MAX))
             G_fatal_error(_("Unable to get current working directory"));
         ptr = output_path + strlen(output_path) - 1;
         if (*(ptr++) != HOST_DIRSEP) {



More information about the grass-commit mailing list