Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/vsa Use snprintf instead of sprintf
details: https://anonhg.NetBSD.org/src/rev/4bfa7f2188a5
branches: trunk
changeset: 794898:4bfa7f2188a5
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Mar 28 13:26:24 2014 +0000
description:
Use snprintf instead of sprintf
diffstat:
sys/arch/vax/vsa/spx.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 925472d36e03 -r 4bfa7f2188a5 sys/arch/vax/vsa/spx.c
--- a/sys/arch/vax/vsa/spx.c Fri Mar 28 11:55:09 2014 +0000
+++ b/sys/arch/vax/vsa/spx.c Fri Mar 28 13:26:24 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spx.c,v 1.7 2013/10/24 13:16:33 martin Exp $ */
+/* $NetBSD: spx.c,v 1.8 2014/03/28 13:26:24 ozaki-r Exp $ */
/*
* SPX/LCSPX/SPXg/SPXgt accelerated framebuffer driver for NetBSD/VAX
* Copyright (c) 2005 Blaz Antonic
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spx.c,v 1.7 2013/10/24 13:16:33 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spx.c,v 1.8 2014/03/28 13:26:24 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1512,7 +1512,8 @@
spx_stdscreen.nrows = spx_rows;
spx_stdscreen.fontwidth = spx_font.fontwidth;
spx_stdscreen.fontheight = spx_font.fontheight;
- sprintf(spx_stdscreen_name, "%dx%d", spx_cols, spx_rows);
+ snprintf(spx_stdscreen_name, sizeof(spx_stdscreen_name),
+ "%dx%d", spx_cols, spx_rows);
/* for SPXg spx_fb_size represents FB window size, not FB length */
if (fb_type == FB_IS_SPXg)
Home |
Main Index |
Thread Index |
Old Index