diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-10-10 12:44:38 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-10-10 12:44:38 +0000 |
commit | 17e9b3489e4be976c9cd12bf397eb99388f08b3a (patch) | |
tree | 88000a4cc70844d6cd430ddaeca0eb91d79da93a /libexec/talkd/announce.c | |
parent | 43f627e7eaed75604d56c7dd65549e3a041b04ae (diff) |
need more size to big_buf for line termination (\r\n).
Diffstat (limited to 'libexec/talkd/announce.c')
-rw-r--r-- | libexec/talkd/announce.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/talkd/announce.c b/libexec/talkd/announce.c index 101e75ff86d..fca40351826 100644 --- a/libexec/talkd/announce.c +++ b/libexec/talkd/announce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: announce.c,v 1.9 2000/07/06 00:01:45 deraadt Exp $ */ +/* $OpenBSD: announce.c,v 1.10 2000/10/10 12:44:37 itojun Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)announce.c 5.9 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$Id: announce.c,v 1.9 2000/07/06 00:01:45 deraadt Exp $"; +static char rcsid[] = "$Id: announce.c,v 1.10 2000/10/10 12:44:37 itojun Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -108,7 +108,7 @@ print_mesg(tf, request, remote_machine) struct tm *localclock; char line_buf[N_LINES][N_CHARS]; int sizes[N_LINES]; - char big_buf[N_LINES*N_CHARS]; + char big_buf[(N_LINES + 1) * N_CHARS]; char *bptr, *lptr, *vis_user; int i, j, max_size; |