[GRASS-SVN] r46168 - grass/branches/releasebranch_6_4/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 3 08:43:54 EDT 2011


Author: hamish
Date: 2011-05-03 05:43:53 -0700 (Tue, 03 May 2011)
New Revision: 46168

Modified:
   grass/branches/releasebranch_6_4/ps/ps.map/do_plt.c
Log:
allow spaces in EPS file pathname (minimal backport from devbr6 req'd for bugfix)

Modified: grass/branches/releasebranch_6_4/ps/ps.map/do_plt.c
===================================================================
--- grass/branches/releasebranch_6_4/ps/ps.map/do_plt.c	2011-05-03 12:39:12 UTC (rev 46167)
+++ grass/branches/releasebranch_6_4/ps/ps.map/do_plt.c	2011-05-03 12:43:53 UTC (rev 46168)
@@ -153,7 +153,7 @@
 	    break;
 
 	case 'E':		/* EPS file */
-	    if (sscanf(buf, "E %d %lf %lf %lf %lf %s",
+	    if (sscanf(buf, "E %d %lf %lf %lf %lf %[^\n]s",
 		       &masked, &e1, &n1, &scale, &rotate, name) == 6) {
 		if (masked && after_masking)
 		    continue;



More information about the grass-commit mailing list