Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/omap Add missing 2nd argument to snprintf
details: https://anonhg.NetBSD.org/src/rev/a1ffba4902cf
branches: trunk
changeset: 328097:a1ffba4902cf
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Mar 26 11:59:05 2014 +0000
description:
Add missing 2nd argument to snprintf
diffstat:
sys/arch/arm/omap/ti_iic.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r bb36ccca2509 -r a1ffba4902cf sys/arch/arm/omap/ti_iic.c
--- a/sys/arch/arm/omap/ti_iic.c Wed Mar 26 08:51:59 2014 +0000
+++ b/sys/arch/arm/omap/ti_iic.c Wed Mar 26 11:59:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ti_iic.c,v 1.6 2014/03/26 08:52:00 christos Exp $ */
+/* $NetBSD: ti_iic.c,v 1.7 2014/03/26 11:59:05 ozaki-r Exp $ */
/*
* Copyright (c) 2013 Manuel Bouyer. All rights reserved.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ti_iic.c,v 1.6 2014/03/26 08:52:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ti_iic.c,v 1.7 2014/03/26 11:59:05 ozaki-r Exp $");
#include "opt_omap.h"
#include "locators.h"
@@ -238,7 +238,7 @@
}
}
KASSERT(i < __arraycount(am335x_iic));
- snprintf(buf, "%s_SDA", am335x_iic[i].as_name);
+ snprintf(buf, sizeof(buf), "%s_SDA", am335x_iic[i].as_name);
if (sitara_cm_padconf_get(buf, &mode, &state) == 0) {
aprint_debug(": SDA mode %s state %d ", mode, state);
}
Home |
Main Index |
Thread Index |
Old Index