Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ia64/ia64 Fix snprintf fallout



details:   https://anonhg.NetBSD.org/src/rev/6a0d4a447b20
branches:  trunk
changeset: 328444:6a0d4a447b20
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Apr 03 17:05:58 2014 +0000

description:
Fix snprintf fallout

diffstat:

 sys/arch/ia64/ia64/db_interface.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r 571eebf33389 -r 6a0d4a447b20 sys/arch/ia64/ia64/db_interface.c
--- a/sys/arch/ia64/ia64/db_interface.c Thu Apr 03 17:04:46 2014 +0000
+++ b/sys/arch/ia64/ia64/db_interface.c Thu Apr 03 17:05:58 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.7 2010/06/09 02:48:52 mrg Exp $ */
+/* $NetBSD: db_interface.c,v 1.8 2014/04/03 17:05:58 martin Exp $ */
 
 /*-
  * Copyright (c) 2003-2005 Marcel Moolenaar
@@ -80,7 +80,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.7 2010/06/09 02:48:52 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.8 2014/04/03 17:05:58 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -458,17 +458,17 @@
 
                /* Predicate. */
                if (i->i_oper[0].o_value != 0) {
-                       asm_operand(i->i_oper+0, buf, loc);
+                       asm_operand(i->i_oper+0, buf, sizeof(buf), loc);
                        db_printf("(%s) ", buf);
                } else
                        db_printf("   ");
 
                /* Mnemonic & completers. */
-               asm_mnemonic(i->i_op, buf);
+               asm_mnemonic(i->i_op, buf, sizeof(buf));
                db_printf(buf);
                n = 0;
                while (n < i->i_ncmpltrs) {
-                       asm_completer(i->i_cmpltr + n, buf);
+                       asm_completer(i->i_cmpltr + n, buf, sizeof(buf));
                        db_printf(buf);
                        n++;
                }
@@ -484,7 +484,7 @@
                                else
                                        db_printf(",");
                        }
-                       asm_operand(i->i_oper + n, buf, loc);
+                       asm_operand(i->i_oper + n, buf, sizeof(buf), loc);
                        db_printf(buf);
                        n++;
                }



Home | Main Index | Thread Index | Old Index