Portability fixes
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
pkgdata_DATA = *.xsl ms_odt.odt odt.odt sermon.dtd
|
||||
EXTRA_DIST = *.xsl ms_odt.odt sermon.dtd
|
||||
EXTRA_DIST = *.xsl ms_odt.odt odt.odt sermon.dtd
|
||||
|
||||
@@ -5,16 +5,27 @@ BUILT_SOURCES = sermon_lexer.c \
|
||||
sermon_parser.h
|
||||
AM_YFLAGS = -d --location
|
||||
sermon_SOURCES = citations.c \
|
||||
citations.h \
|
||||
format.c \
|
||||
format.h \
|
||||
main.c \
|
||||
meta.h \
|
||||
odt.c \
|
||||
odt.h \
|
||||
options.c \
|
||||
options.h \
|
||||
queue.h \
|
||||
sermon.h \
|
||||
sermon_lexer.l \
|
||||
sermon_parser.y \
|
||||
sermon_util.c \
|
||||
stack.h \
|
||||
utf8.c \
|
||||
utf8.h \
|
||||
xml.c \
|
||||
xslt.c
|
||||
xml.h \
|
||||
xslt.c \
|
||||
xslt.h
|
||||
sermon_LDADD = ${libxml2_LIBS} ${libxslt_LIBS} ${libbsd_LIBS}
|
||||
CLEANFILES = sermon_lexer.c \
|
||||
sermon_parser.c \
|
||||
|
||||
@@ -121,7 +121,7 @@ constructODT(const char* const outputFilename, const char* const templateFilenam
|
||||
int i;
|
||||
|
||||
/* create temporary workspace */
|
||||
strlcpy(tempDir, "/tmp/sermon.XXXXXXXXXX", sizeof(tempDir));
|
||||
strcpy(tempDir, "/tmp/sermon.XXXXXXXXXX");
|
||||
if (mkdtemp(tempDir) == NULL) {
|
||||
perror("mkdtemp");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user