diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-07-31 04:36:16 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-07-31 04:36:16 +0000 |
commit | b019c653ca54635e6cf6a1676f26741ee326e4ad (patch) | |
tree | 3ea11b45842468273445e8b9f352916a7b92cc02 /sys | |
parent | f86599797e94db7bb50aa4642a684aac1612bd93 (diff) |
From NetBSD:
In OPIOCNEXTPROP: if we are at the last property, set the buffer length to
0 instead of setting it to an uninitialized value (len).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/openprom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/openprom.c b/sys/arch/sparc64/sparc64/openprom.c index 0efc473509c..91fae8eb0d9 100644 --- a/sys/arch/sparc64/sparc64/openprom.c +++ b/sys/arch/sparc64/sparc64/openprom.c @@ -1,5 +1,5 @@ -/* $OpenBSD: openprom.c,v 1.6 2002/07/31 01:12:28 jason Exp $ */ -/* $NetBSD: openprom.c,v 1.2 2000/11/18 23:45:05 mrg Exp $ */ +/* $OpenBSD: openprom.c,v 1.7 2002/07/31 04:36:15 jason Exp $ */ +/* $NetBSD: openprom.c,v 1.4 2002/01/10 06:21:53 briggs Exp $ */ /* * Copyright (c) 1992, 1993 @@ -218,7 +218,7 @@ openpromioctl(dev, cmd, data, flags, p) error = OF_nextprop(node, name, nextprop); splx(s); if (error == 0) { - op->op_buflen = len; + op->op_buflen = 0; error = subyte(op->op_buf, 0); break; } |