diff --git a/general/g.mkfontcap/stroke_fonts.c b/general/g.mkfontcap/stroke_fonts.c index 2988dd39b14..3537cd938c5 100644 --- a/general/g.mkfontcap/stroke_fonts.c +++ b/general/g.mkfontcap/stroke_fonts.c @@ -82,6 +82,12 @@ void find_stroke_fonts(void) fprintf(stderr, "G.MKFONTCAP %d %p %p %p; %s %c %s\n", __LINE__, &fontcap[totalfonts].path, &(fontcap[totalfonts].path), fontcap[totalfonts].path, dirpath, HOST_DIRSEP, dirlisting[i]); + fontcap[totalfonts].path = G_malloc(10); + fprintf(stderr, "G.MKFONTCAP %d %p %p\n", &fontcap[totalfonts].path, + fontcap[totalfonts].path); + sprintf(fontcap[totalfonts].path, "hello"); + fprintf(stderr, "G.MKFONTCAP %d %p %p %s\n", &fontcap[totalfonts].path, + fontcap[totalfonts].path, fontcap[totalfonts].path); G_asprintf(&fontcap[totalfonts].path, "%s%c%s", dirpath, HOST_DIRSEP, dirlisting[i]); fprintf(stderr, "G.MKFONTCAP %d %p %p; %s\n", __LINE__,