Source-Changes-HG archive

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

[src/trunk]: src/bin/csh Fix unaligned access memory problem introduced from ...



details:   https://anonhg.NetBSD.org/src/rev/e9532526d5fa
branches:  trunk
changeset: 472814:e9532526d5fa
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 08 23:12:29 1999 +0000

description:
Fix unaligned access memory problem introduced from the -s fix.

diffstat:

 bin/csh/proc.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 32504342088b -r e9532526d5fa bin/csh/proc.c
--- a/bin/csh/proc.c    Sat May 08 19:58:33 1999 +0000
+++ b/bin/csh/proc.c    Sat May 08 23:12:29 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.c,v 1.17 1999/03/19 12:58:00 christos Exp $       */
+/*     $NetBSD: proc.c,v 1.18 1999/05/08 23:12:29 christos Exp $       */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)proc.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: proc.c,v 1.17 1999/03/19 12:58:00 christos Exp $");
+__RCSID("$NetBSD: proc.c,v 1.18 1999/05/08 23:12:29 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1006,14 +1006,14 @@
        }
        else {
            if (v[0][1] == 's' && (Isspace(v[0][2]) || v[0][2] == '\0'))
-               v++;
+               name = short2str(&v[0][0]);
            else
-               (*v)++;
+               name = short2str(&v[0][1]);
+           v++;
 
            if (v[0] == NULL || v[1] == NULL)
                stderror(ERR_NAME | ERR_TOOFEW);
 
-           name = short2str(&v[0][0]);
            for (signum = 1; signum < NSIG; signum++)
                if (!strcasecmp(sys_signame[signum], name) ||
                    (!strncasecmp("SIG", name, 3) &&    /* skip "SIG" prefix */



Home | Main Index | Thread Index | Old Index