-/* $OpenBSD: histedit.c,v 1.4 1996/09/15 22:43:50 millert Exp $ */
+/* $OpenBSD: histedit.c,v 1.5 1996/09/16 16:33:20 millert Exp $ */
/* $NetBSD: histedit.c,v 1.8 1995/05/11 21:29:12 christos Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: histedit.c,v 1.4 1996/09/15 22:43:50 millert Exp $";
+static char rcsid[] = "$OpenBSD: histedit.c,v 1.5 1996/09/16 16:33:20 millert Exp $";
#endif
#endif /* not lint */
if (editor) {
int fd;
INTOFF; /* easier */
- snprintf(editfile, sizeof(editfile), "%s/_shXXXXXX", _PATH_TMP);
+ snprintf(editfile, sizeof(editfile), "%s_shXXXXXX", _PATH_TMP);
if ((fd = mkstemp(editfile)) < 0)
error("can't create temporary file %s", editfile);
if ((efp = fdopen(fd, "w")) == NULL) {