diff options
-rw-r--r-- | usr.bin/window/scanner.c | 1 | ||||
-rw-r--r-- | usr.bin/window/wwterminfo.c | 3 |
2 files changed, 2 insertions, 2 deletions
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; |