Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/vax Fix bug causing small constant...
details: https://anonhg.NetBSD.org/src/rev/f2c3e8e6fb4a
branches: trunk
changeset: 318574:f2c3e8e6fb4a
user: ragge <ragge%NetBSD.org@localhost>
date: Sun Apr 29 19:01:15 2018 +0000
description:
Fix bug causing small constants not to be printed out.
diffstat:
sys/arch/vax/vax/db_disasm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 93f27141b7e1 -r f2c3e8e6fb4a sys/arch/vax/vax/db_disasm.c
--- a/sys/arch/vax/vax/db_disasm.c Sun Apr 29 18:29:29 2018 +0000
+++ b/sys/arch/vax/vax/db_disasm.c Sun Apr 29 19:01:15 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.22 2017/05/22 16:39:41 ragge Exp $ */
+/* $NetBSD: db_disasm.c,v 1.23 2018/04/29 19:01:15 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
* All rights reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.22 2017/05/22 16:39:41 ragge Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.23 2018/04/29 19:01:15 ragge Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -471,7 +471,7 @@
{
char buf[32];
if (i < 100 && i > -100)
- snprintf(ib->curp, sizeof(buf), "%d", i);
+ snprintf(buf, sizeof(buf), "%d", i);
else
snprintf(buf, sizeof(buf), "0x%x", i);
add_str(ib, buf);
Home |
Main Index |
Thread Index |
Old Index