Source-Changes-HG archive

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

[src/netbsd-1-6]: src/distrib/utils/sysinst Apply patch (requested by dsl in ...



details:   https://anonhg.NetBSD.org/src/rev/5269ff4d8a92
branches:  netbsd-1-6
changeset: 530601:5269ff4d8a92
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Aug 19 14:40:31 2003 +0000

description:
Apply patch (requested by dsl in ticket 1393):
Stop sysinst from dumping core randomly. This fixes PR install/17223.

diffstat:

 distrib/utils/sysinst/run.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r c3d60d330b09 -r 5269ff4d8a92 distrib/utils/sysinst/run.c
--- a/distrib/utils/sysinst/run.c       Sun Aug 17 13:53:38 2003 +0000
+++ b/distrib/utils/sysinst/run.c       Tue Aug 19 14:40:31 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: run.c,v 1.35 2001/09/13 18:07:26 jdolecek Exp $        */
+/*     $NetBSD: run.c,v 1.35.2.1 2003/08/19 14:40:31 tron Exp $        */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -288,6 +288,7 @@
        origargs = args;
 
        command = (char *)malloc(MAXBUF * sizeof(char));
+       command[0] = 0;
        for (p = *args; p != NULL; p = *++args) {
                strcat(command, p);
                strcat(command, " ");



Home | Main Index | Thread Index | Old Index