summaryrefslogtreecommitdiff
path: root/sys/dev/isa/opti.h
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2007-11-03 19:06:08 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2007-11-03 19:06:08 +0000
commit8d47b36de2cf57509703a9cefd4621968f5becd6 (patch)
tree8269394177dd83e1c07fddc8f9afad09055e9e25 /sys/dev/isa/opti.h
parent0c68de5a9eaaa31381b79595d4441f63aa3db9fd (diff)
Fix setting values to buffers by obeying the conversion rules.
The values are truncated or zero extended as required. The spec is somewhat ambigious on strings and integers requiring truncation "before copy" so we try to be safe and zero terminate the buffer in case the source is string. Reported by ckuethe@, diagnosis, initial diff and feedback by kettenis@ ok kettenis@, beck@, weingart@, robert@, gwk@, ckuethe@
Diffstat (limited to 'sys/dev/isa/opti.h')
0 files changed, 0 insertions, 0 deletions