simplify get_avail_faces with agxbprint
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Sep 2020 17:32:25 +0000 (10:32 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 17 Sep 2020 04:08:23 +0000 (21:08 -0700)
plugin/pango/gvgetfontlist_pango.c

index c8c90e20d6d3236d69c1654e663c6fdd9d0d8c83..ea8b1212d70ca85072a3cd131e62c75b5dcbe28e 100644 (file)
@@ -319,8 +319,7 @@ static char *get_avail_faces(int faces, agxbuf* xb)
     int i;
     for (i = 0; i < FACELIST_SZ; i++) {
        if (faces & facelist[i].flag) {
-           agxbput (xb, facelist[i].name);
-           agxbputc(xb, ' ');
+           agxbprint (xb, "%s ", facelist[i].name);
        }
     }
     return agxbuse (xb);