summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@gnu.org>2002-04-09 08:28:27 +0000
committerAnders Carlsson <andersca@src.gnome.org>2002-04-09 08:28:27 +0000
commit64bf7e86ba0f4d9b0ff4437ffd59513ad2d8bf4c (patch)
tree1c2033b89c293ef76324c89daa38f93aaae43332
parentcee0b6aadb9a50228418c0186243dbf2df744375 (diff)
downloadyelp-64bf7e86ba0f4d9b0ff4437ffd59513ad2d8bf4c.tar.gz
Use g_snprintf instead of snprintf which apparently needs -ldb to work onLIBGNOME_1_116_0LIBGNOME_1_115_0
2002-04-09 Anders Carlsson <andersca@gnu.org> * help-converters/man/Makefile.am: * help-converters/man/gnome-man2html.c: (main): Use g_snprintf instead of snprintf which apparently needs -ldb to work on OSF/1 4.0 (#78166, Gareth Pearce).
-rw-r--r--src/man2html/Makefile.am4
-rw-r--r--src/man2html/yelp-man2html.c5
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);