summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
858ecf0)
SCCS-vsn: usr.bin/write/write.c 4.2
-static char *sccsid = "@(#)write.c 4.1 (Berkeley) %G%";
+static char *sccsid = "@(#)write.c 4.2 (Berkeley) %G%";
/*
* write to another user
*/
/*
* write to another user
*/
strcat(histty, histtya);
}
while (fread((char *)&ubuf, sizeof(ubuf), 1, uf) == 1) {
strcat(histty, histtya);
}
while (fread((char *)&ubuf, sizeof(ubuf), 1, uf) == 1) {
+ if (ubuf.ut_name[0] == '\0')
+ continue;
if (strcmp(ubuf.ut_line, mytty)==0) {
for(i=0; i<NMAX; i++) {
c1 = ubuf.ut_name[i];
if (strcmp(ubuf.ut_line, mytty)==0) {
for(i=0; i<NMAX; i++) {
c1 = ubuf.ut_name[i];