Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/lib Avoid pulling strncpy() into minimal...



details:   https://anonhg.NetBSD.org/src/rev/393031b41815
branches:  trunk
changeset: 544020:393031b41815
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat Mar 08 21:30:59 2003 +0000

description:
Avoid pulling strncpy() into minimal boot code

diffstat:

 sys/arch/i386/stand/lib/pcio.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r e0d5c563e6fd -r 393031b41815 sys/arch/i386/stand/lib/pcio.c
--- a/sys/arch/i386/stand/lib/pcio.c    Sat Mar 08 21:09:37 2003 +0000
+++ b/sys/arch/i386/stand/lib/pcio.c    Sat Mar 08 21:30:59 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcio.c,v 1.12 2003/02/01 14:48:18 dsl Exp $     */
+/*     $NetBSD: pcio.c,v 1.13 2003/03/08 21:30:59 dsl Exp $     */
 
 /*
  * Copyright (c) 1996, 1997
@@ -202,7 +202,9 @@
        btinfo_console.speed = 9600;
 #endif
 #else /* !SUPPORT_SERIAL */
-       strncpy(btinfo_console.devname, "pc", 16);
+       btinfo_console.devname[0] = 'p';
+       btinfo_console.devname[1] = 'c';
+       btinfo_console.devname[2] = 0;
 #endif /* SUPPORT_SERIAL */
 }
 



Home | Main Index | Thread Index | Old Index