Commit Graph

16 Commits

Author SHA1 Message Date
itojun d80101c91c Allocate vis_user on the stack instead of using malloc(). This
way we don't have to worry about malloc() failure.  Also closes
a memory leak since vis_user was never free()d.  Lack of malloc()
checking pointed out by Peter Werner.
from openbsd
2002-09-25 04:57:59 +00:00
enami 96924d78ee Lineup comment and remove unnecessary whitespaces. 2002-03-04 01:40:56 +00:00
enami 71706b65e7 Use \a instead of embedding raw control-G character. 2002-03-04 01:37:52 +00:00
tv 7781da70d5 Formatting nit: add a space. 2000-10-17 20:55:36 +00:00
itojun 4a32e44ffe make sure big_buf is big enough to hold line terminations.
if all the lines have N_CHARS of characters, we will write up
	N_CHARS * N_LINES + (3 + 2 * N_LINES) + 1
of bytes.
2000-10-10 12:38:54 +00:00
mrg 687403aa7a - clean up some more cruft
- support "talkd -l" for extra (syslog(3)) logging
- fix error in previous announce.c change
- use getopt
- add (missing) -d and -l descriptions to man page
1998-07-04 19:31:05 +00:00
mrg 750ef3b29d - use S_IWGRP over 020
- KNF
- ensure we don't overflow a buffer (don't think it would anyway).
- favour snprintf over sprintf (and varargs versions)
1998-07-03 11:54:08 +00:00
kleink f604523fb6 Need <time.h> for localtime() prototype. 1998-04-01 14:51:54 +00:00
christos 30b8660384 - use ttymsg from libutil
- clean warnings
- PR/3778: Eric Fischer: talkd should find the least idle terminal
1997-06-29 19:13:01 +00:00
christos 5a6c78298f Merge in lite-2 1997-06-29 18:01:12 +00:00
rat c8b88b5da7 Use snprintf(3) when printing into arrays allocated on the stack.
Patch submitted by David Holland <dholland@hcs.HARVARD.EDU>
1996-07-17 18:46:58 +00:00
cgd 788733b7a9 typeof(timeval.tv_sec) != time_t 1995-06-07 17:14:21 +00:00
cgd a59d6b2cae stdlib.h for protos 1994-12-23 15:59:21 +00:00
glass e34b72b0cb vis(3)ify remote user name. Fixes bug 589. Fix basically as submitted by matthew green 1994-12-21 20:03:48 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00