From e7a634d197db8bcfd5f462ea582675a6ab39fa05 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 29 Mar 2001 20:33:57 +0000 Subject: Include a missing header, and change a mktemp(3), mkdir(2) sequence to mkdtemp(3). Approved by: murray --- usr.bin/window/scanner.c | 1 + usr.bin/window/wwterminfo.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/window') diff --git a/usr.bin/window/scanner.c b/usr.bin/window/scanner.c index 23b8a12..e0140fc 100644 --- a/usr.bin/window/scanner.c +++ b/usr.bin/window/scanner.c @@ -44,6 +44,7 @@ static char rcsid[] = "@(#)$FreeBSD$"; #include "token.h" #include "context.h" #include "string.h" +#include "mystring.h" s_getc() { diff --git a/usr.bin/window/wwterminfo.c b/usr.bin/window/wwterminfo.c index ed60f3b..496cd51 100644 --- a/usr.bin/window/wwterminfo.c +++ b/usr.bin/window/wwterminfo.c @@ -64,8 +64,7 @@ wwterminfoinit() /* make the directory */ (void) sprintf(wwterminfopath, "%swwinXXXXXX", _PATH_TMP); - mktemp(wwterminfopath); - if (mkdir(wwterminfopath, 0755) < 0 || + if (mkdtemp(wwterminfopath) < 0 || chmod(wwterminfopath, 00755) < 0) { wwerrno = WWE_SYS; return -1; -- cgit v1.1