Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ssh fix problem in previous patch



details:   https://anonhg.NetBSD.org/src/rev/c5f6a8a3a2b9
branches:  trunk
changeset: 552076:c5f6a8a3a2b9
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 18 01:35:07 2003 +0000

description:
fix problem in previous patch

diffstat:

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

diffs (27 lines):

diff -r 02727d1a9eab -r c5f6a8a3a2b9 crypto/dist/ssh/misc.c
--- a/crypto/dist/ssh/misc.c    Thu Sep 18 01:33:58 2003 +0000
+++ b/crypto/dist/ssh/misc.c    Thu Sep 18 01:35:07 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: misc.c,v 1.12 2003/09/17 23:19:02 christos Exp $       */
+/*     $NetBSD: misc.c,v 1.13 2003/09/18 01:35:07 christos Exp $       */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  *
@@ -25,7 +25,7 @@
 
 #include "includes.h"
 RCSID("$OpenBSD: misc.c,v 1.20 2002/12/13 10:03:15 markus Exp $");
-__RCSID("$NetBSD: misc.c,v 1.12 2003/09/17 23:19:02 christos Exp $");
+__RCSID("$NetBSD: misc.c,v 1.13 2003/09/18 01:35:07 christos Exp $");
 
 #include "misc.h"
 #include "log.h"
@@ -314,7 +314,7 @@
                nalloc = 32;
                args->num = 0;
        } else if (args->num+2 >= args->nalloc)
-               nalloc *= 2;
+               nalloc = args->nalloc * 2;
 
        args->list = xrealloc(args->list, nalloc * sizeof(char *));
        args->nalloc = nalloc;



Home | Main Index | Thread Index | Old Index