From 566153f3ee917da49481cd93706d7c724664d7eb Mon Sep 17 00:00:00 2001 From: Oleg Safiullin Date: Mon, 7 Apr 2008 17:50:38 +0000 Subject: snprintf "%s" -> strlcpy --- sys/dev/isa/it.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c index b14c2934e52..658dfc8669b 100644 --- a/sys/dev/isa/it.c +++ b/sys/dev/isa/it.c @@ -1,4 +1,4 @@ -/* $OpenBSD: it.c,v 1.31 2008/04/07 17:37:58 form Exp $ */ +/* $OpenBSD: it.c,v 1.32 2008/04/07 17:50:37 form Exp $ */ /* * Copyright (c) 2007-2008 Oleg Safiullin @@ -247,9 +247,8 @@ it_attach(struct device *parent, struct device *self, void *aux) sc->sc_sensors[i].type = it_sensors[i].type; if (it_sensors[i].desc != NULL) - snprintf(sc->sc_sensors[i].desc, - sizeof(sc->sc_sensors[i].desc), "%s", - it_sensors[i].desc); + strlcpy(sc->sc_sensors[i].desc, it_sensors[i].desc, + sizeof(sc->sc_sensors[i].desc)); } /* register update task */ -- cgit v1.2.3