summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-06-25 12:09:36 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-06-25 12:09:36 +0000
commit5a439d906a25ef93a6928917b3aed80dfff2352f (patch)
treeafd4adeede3cd68b68c549f65fa2fb12b764482f
parent7762c181e7fb113216381095c29d6bcb95810616 (diff)
fix last change.
-rw-r--r--libexec/talkd/process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/talkd/process.c b/libexec/talkd/process.c
index 12f85f5386e..dd98d8f29a9 100644
--- a/libexec/talkd/process.c
+++ b/libexec/talkd/process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.c,v 1.4 1996/06/24 13:41:29 mickey Exp $ */
+/* $OpenBSD: process.c,v 1.5 1996/06/25 12:09:35 mickey Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -35,7 +35,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)process.c 5.10 (Berkeley) 2/26/91";*/
-static char rcsid[] = "$Id: process.c,v 1.4 1996/06/24 13:41:29 mickey Exp $";
+static char rcsid[] = "$Id: process.c,v 1.5 1996/06/25 12:09:35 mickey Exp $";
#endif /* not lint */
/*
@@ -230,7 +230,7 @@ find_user(name, tty)
}
}
fclose(fd);
- if (status == SUCCESS)
+ if (*tty != '\0' && status == SUCCESS)
strcpy(tty, ubuf1.ut_line);
return (status);
}