diff options
author | 2017-08-22 12:24:45 +0000 | |
---|---|---|
committer | 2017-08-22 12:24:45 +0000 | |
commit | 7a865e34b83f4d24dfabc9a7538f89cdeefceb91 (patch) | |
tree | 610778693348327fa3a1090d6e0bff19b83103e5 | |
parent | Move array bounds tests before access to avoid reading past the end of (diff) | |
download | wireguard-openbsd-7a865e34b83f4d24dfabc9a7538f89cdeefceb91.tar.xz wireguard-openbsd-7a865e34b83f4d24dfabc9a7538f89cdeefceb91.zip |
Update inaccurate comment: rasops_copycols() doesn't use bcopy()
anymore, but either memmove() or slow_bcopy().
OK nayden@
-rw-r--r-- | sys/dev/rasops/rasops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index 2fdbfb1266a..778c355549b 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops.c,v 1.47 2017/08/17 20:21:53 kettenis Exp $ */ +/* $OpenBSD: rasops.c,v 1.48 2017/08/22 12:24:45 fcambus Exp $ */ /* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */ /*- @@ -661,8 +661,8 @@ rasops_copyrows(void *cookie, int src, int dst, int num) /* * Copy columns. This is slow, and hard to optimize due to alignment, * and the fact that we have to copy both left->right and right->left. - * We simply cop-out here and use bcopy(), since it handles all of - * these cases anyway. + * We simply cop-out here and use either memmove() or slow_bcopy(), + * since they handle all of these cases anyway. */ int rasops_copycols(void *cookie, int row, int src, int dst, int num) |