0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 03:25:52 +00:00
Files
termux-packages/packages/mandoc/mandocdb.c.patch
TomIO 67be0d0688 rename(main/man): mandoc
Also fix up outdated build options
clean up build and ship a `/etc/man.conf`
2025-04-21 16:40:42 +02:00

21 lines
570 B
Diff

--- a/mandocdb.c
+++ b/mandocdb.c
@@ -2203,7 +2203,7 @@
dbwrite(struct dba *dba)
{
struct stat sb1, sb2;
- char tfn[33], *cp1, *cp2;
+ char tfn[sizeof("@TERMUX_PREFIX@/tmp/mandocdb.XXXXXXXX")], *cp1, *cp2;
off_t i;
int fd1, fd2;
@@ -2238,7 +2238,7 @@
* file, but let's at least check whether the data changed.
*/
- (void)strlcpy(tfn, "/tmp/mandocdb.XXXXXXXX", sizeof(tfn));
+ (void)strlcpy(tfn, "@TERMUX_PREFIX@/tmp/mandocdb.XXXXXXXX", sizeof(tfn));
if (mkdtemp(tfn) == NULL) {
exitcode = (int)MANDOCLEVEL_SYSERR;
say("", "&%s", tfn);