Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/libexec/talkd Pullup 1.12 [itojun] and 1.13 [releng]:



details:   https://anonhg.NetBSD.org/src/rev/f4d5087316c8
branches:  netbsd-1-5
changeset: 489825:f4d5087316c8
user:      tv <tv%NetBSD.org@localhost>
date:      Tue Oct 17 20:56:39 2000 +0000

description:
Pullup 1.12 [itojun] and 1.13 [releng]:
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.

diffstat:

 libexec/talkd/announce.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 00eb84b999f7 -r f4d5087316c8 libexec/talkd/announce.c
--- a/libexec/talkd/announce.c  Tue Oct 17 20:44:14 2000 +0000
+++ b/libexec/talkd/announce.c  Tue Oct 17 20:56:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: announce.c,v 1.11 1998/07/04 19:31:05 mrg Exp $        */
+/*     $NetBSD: announce.c,v 1.11.10.1 2000/10/17 20:56:39 tv Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)announce.c 8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: announce.c,v 1.11 1998/07/04 19:31:05 mrg Exp $");
+__RCSID("$NetBSD: announce.c,v 1.11.10.1 2000/10/17 20:56:39 tv Exp $");
 #endif
 #endif /* not lint */
 
@@ -109,7 +109,7 @@
        struct iovec iovec;
        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;
 



Home | Main Index | Thread Index | Old Index