diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-13 09:09:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-13 09:09:52 +0000 |
commit | cd64a50f546ecbfd25035373ee745bd04e4e5905 (patch) | |
tree | 86a1452cec538b8f5259a45745e95cd1161d04e7 /sbin/raidctl/rf_configure.c | |
parent | 6153e3b8d9aedd43b1300c4d60217039c9485e02 (diff) |
lots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu
Diffstat (limited to 'sbin/raidctl/rf_configure.c')
-rw-r--r-- | sbin/raidctl/rf_configure.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/raidctl/rf_configure.c b/sbin/raidctl/rf_configure.c index 365be0f38b5..f9b63bcf13b 100644 --- a/sbin/raidctl/rf_configure.c +++ b/sbin/raidctl/rf_configure.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rf_configure.c,v 1.10 2002/12/16 07:01:33 tdeval Exp $ */ +/* $OpenBSD: rf_configure.c,v 1.11 2003/03/13 09:09:27 deraadt Exp $ */ /* $NetBSD: rf_configure.c,v 1.14 2001/02/04 21:05:42 christos Exp $ */ /* @@ -538,8 +538,8 @@ rf_ReadSpareTable(req, fname) if (buf[strlen(buf)-1] == '\n') buf[strlen(buf)-1] = '\0'; - sprintf(targString, "fdisk %d\n", req->fcol); - sprintf(errString, + snprintf(targString, sizeof targString, "fdisk %d\n", req->fcol); + snprintf(errString, sizeof errString, "Invalid sparemap file: can't find \"fdisk %d\" line\n", req->fcol); while (1) { |