summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
Diffstat (limited to 'distrib')
-rw-r--r--distrib/crunch/crunchgen/crunchgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/crunch/crunchgen/crunchgen.c b/distrib/crunch/crunchgen/crunchgen.c
index 2872196cfa3..c91d934dea6 100644
--- a/distrib/crunch/crunchgen/crunchgen.c
+++ b/distrib/crunch/crunchgen/crunchgen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchgen.c,v 1.13 1997/09/07 20:03:13 millert Exp $ */
+/* $OpenBSD: crunchgen.c,v 1.14 1997/09/07 20:08:53 millert Exp $ */
/*
* Copyright (c) 1994 University of Maryland
* All Rights Reserved.
@@ -564,7 +564,7 @@ void fillin_program_objs(prog_t *p, char *path)
/* discover the objs from the srcdir Makefile */
snprintf(tempfname, sizeof(tempfname), ".tmp_%sXXXXXXXXXX", confname);
- if ((fd = mkstemp(tempfname) == -1) || (f = fdopen(fd, "w")) == NULL) {
+ if ((fd = mkstemp(tempfname)) == -1 || (f = fdopen(fd, "w")) == NULL) {
if (fd != -1)
close(fd);
perror(tempfname);