[GRASS-SVN] r72727 - grass/trunk/general/g.mkfontcap

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 21 13:32:22 PDT 2018


Author: mmetz
Date: 2018-05-21 13:32:22 -0700 (Mon, 21 May 2018)
New Revision: 72727

Modified:
   grass/trunk/general/g.mkfontcap/main.c
Log:
g.mkfontcap: fix qsort callback (partial fix for #3564)

Modified: grass/trunk/general/g.mkfontcap/main.c
===================================================================
--- grass/trunk/general/g.mkfontcap/main.c	2018-05-20 06:54:34 UTC (rev 72726)
+++ grass/trunk/general/g.mkfontcap/main.c	2018-05-21 20:32:22 UTC (rev 72727)
@@ -195,7 +195,7 @@
 
     /* Sort first by type, then by name */
     if (aa->type != bb->type)
-	return (aa->type > bb->type);
+	return (aa->type > bb->type ? 1 : -1);
     else {
 	const char *na = aa->name;
 	const char *nb = bb->name;



More information about the grass-commit mailing list