lukem
7056a59163
fix WARNS=4 issues (const & type mismatches)
2009-03-16 01:13:38 +00:00
lukem
46067dc349
ANSI KNF
2009-03-16 01:04:32 +00:00
dholland
c6b9477692
'struct timezone' belongs in the dustbin of history.
2008-03-04 02:57:33 +00:00
dholland
769bcbf94c
fix typo in comment
2008-03-04 02:45:01 +00:00
agc
8e6ab8837d
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22284, verified by myself.
2003-08-07 09:46:37 +00:00
itojun
39d6020d8a
backout 1.18 and 1.19
2003-04-22 03:51:07 +00:00
itojun
e2d8f394cc
free vis_user
2003-04-22 03:03:16 +00:00
itojun
750506085f
malloc vis_user (why 1.6 branch has the fix already?)
2003-04-22 03:02:14 +00:00
itojun
b39cb313c6
verify strvis() buffer length is enough. make sure string termination before
...
use. remove extra ntohs() which is not needed. from Charles Blundell
2002-11-20 21:01:57 +00:00
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