Source-Changes-HG archive

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

[src/netbsd-1-6]: src/crypto/dist/ssh bring fix from head.



details:   https://anonhg.NetBSD.org/src/rev/fdc363d64949
branches:  netbsd-1-6
changeset: 530722:fdc363d64949
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 18 01:47:54 2003 +0000

description:
bring fix from head.

diffstat:

 crypto/dist/ssh/misc.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r add8c39e7bb9 -r fdc363d64949 crypto/dist/ssh/misc.c
--- a/crypto/dist/ssh/misc.c    Wed Sep 17 23:45:31 2003 +0000
+++ b/crypto/dist/ssh/misc.c    Thu Sep 18 01:47:54 2003 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: misc.c,v 1.9.2.1 2003/09/17 23:25:51 christos Exp $    */
-/*     $NetBSD: misc.c,v 1.9.2.1 2003/09/17 23:25:51 christos Exp $    */
+/*     $NetBSD: misc.c,v 1.9.2.2 2003/09/18 01:47:54 christos Exp $    */
+/*     $NetBSD: misc.c,v 1.9.2.2 2003/09/18 01:47:54 christos Exp $    */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  *
@@ -314,7 +314,9 @@
                nalloc = 32;
                args->num = 0;
        } else if (args->num+2 >= args->nalloc)
-               nalloc *= 2;
+               nalloc = args->nalloc * 2;
+       else
+               nalloc = args.nalloc;
 
        args->list = xrealloc(args->list, nalloc * sizeof(char *));
        args->nalloc = nalloc;



Home | Main Index | Thread Index | Old Index