summaryrefslogtreecommitdiff
path: root/src/man2html/yelp-man2html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/man2html/yelp-man2html.c')
-rw-r--r--src/man2html/yelp-man2html.c5
1 files changed, 3 insertions, 2 deletions
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);