Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev fix sprintf
details: https://anonhg.NetBSD.org/src/rev/9788acfe2555
branches: trunk
changeset: 328094:9788acfe2555
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 26 08:29:41 2014 +0000
description:
fix sprintf
diffstat:
sys/arch/usermode/dev/vaudio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 0fe7200b8a52 -r 9788acfe2555 sys/arch/usermode/dev/vaudio.c
--- a/sys/arch/usermode/dev/vaudio.c Wed Mar 26 08:20:29 2014 +0000
+++ b/sys/arch/usermode/dev/vaudio.c Wed Mar 26 08:29:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vaudio.c,v 1.3 2012/01/15 10:51:12 jmcneill Exp $ */
+/* $NetBSD: vaudio.c,v 1.4 2014/03/26 08:29:41 christos Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vaudio.c,v 1.3 2012/01/15 10:51:12 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vaudio.c,v 1.4 2014/03/26 08:29:41 christos Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -396,8 +396,8 @@
{
struct vaudio_softc *sc = opaque;
- sprintf(adev->name, "Virtual Audio");
- sprintf(adev->version, "");
+ snprintf(adev->name, sizeof(adev->name), "Virtual Audio");
+ adev->version[0] = '\0';
snprintf(adev->config, sizeof(adev->config), "%s", sc->sc_audiopath);
return 0;
Home |
Main Index |
Thread Index |
Old Index