diff options
-rw-r--r-- | src/man2html/Makefile.am | 4 | ||||
-rw-r--r-- | src/man2html/yelp-man2html.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/man2html/Makefile.am b/src/man2html/Makefile.am index c71c7340..4f69dbe9 100644 --- a/src/man2html/Makefile.am +++ b/src/man2html/Makefile.am @@ -1,10 +1,12 @@ ## Process this file with automake to produce Makefile.in. -LDADD = $(Z_LIBS) $(BZ_LIBS) +INCLUDES = $(LIBGNOME_CFLAGS) bin_PROGRAMS = gnome2-man2html gnome2_man2html_SOURCES = gnome-man2html.c +gnome2_man2html_LDADD = $(LIBGNOME_LIBS) $(Z_LIBS) $(BZ_LIBS) + #CFLAGS += -Wall diff --git a/src/man2html/yelp-man2html.c b/src/man2html/yelp-man2html.c index 94fbd36e..41531d4e 100644 --- a/src/man2html/yelp-man2html.c +++ b/src/man2html/yelp-man2html.c @@ -138,6 +138,7 @@ #ifdef HAVE_LIBBZ2 #include <bzlib.h> #endif +#include <glib.h> static char *URLbasename = NULL; @@ -3721,10 +3722,10 @@ main(int argc, char **argv) *ctmp = '\0'; - snprintf(cmdline, sizeof(cmdline), "man -w %c %s", section, infile); + g_snprintf(cmdline, sizeof(cmdline), "man -w %c %s", section, infile); } else - snprintf(cmdline, sizeof(cmdline), "man -w %s", infile); + g_snprintf(cmdline, sizeof(cmdline), "man -w %s", infile); fh = popen(cmdline, "r"); fgets(output, sizeof(output), fh); |