summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-02-18 18:52:35 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-02-18 18:52:35 +0000
commit2affefff2d86e781072f828732c6ce9fc090dac4 (patch)
tree7ed4e694729005a9d771e8dd1ec0885d82fd2ca1 /sbin
parent3d5004a471ab889d1ba197110fef4410970ca90c (diff)
Don't ignore buffer size argument.
OK millert@.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/raidctl/rf_configure.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/raidctl/rf_configure.c b/sbin/raidctl/rf_configure.c
index ca463dd1b75..732673f021b 100644
--- a/sbin/raidctl/rf_configure.c
+++ b/sbin/raidctl/rf_configure.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rf_configure.c,v 1.13 2006/11/02 18:07:56 ray Exp $ */
+/* $OpenBSD: rf_configure.c,v 1.14 2007/02/18 18:52:34 ray Exp $ */
/* $NetBSD: rf_configure.c,v 1.14 2001/02/04 21:05:42 christos Exp $ */
/*
@@ -458,12 +458,12 @@ rf_search_file_for_start_of(const char *string, char *buf, int len, FILE *fp)
/* reads from file fp into buf until it finds an interesting line */
int
-rf_get_next_nonblank_line(char *buf, int len ATTRIBUTE_UNUSED, FILE *fp,
+rf_get_next_nonblank_line(char *buf, int len, FILE *fp,
const char *errmsg)
{
char *p;
- while (fgets(buf,256,fp) != NULL) {
+ while (fgets(buf,len,fp) != NULL) {
p = rf_find_non_white(buf);
if (*p == '\n' || *p == '\0' || *p == '#')
continue;