artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4c15d4
)
Use destination buffer size as strlcpy() bound, not source; harmless here for
author
miod
<miod@openbsd.org>
Mon, 4 Jul 2022 19:06:10 +0000
(19:06 +0000)
committer
miod
<miod@openbsd.org>
Mon, 4 Jul 2022 19:06:10 +0000
(19:06 +0000)
both sizes are equal.
ok kettenis@
sys/arch/sparc64/dev/lom.c
patch
|
blob
|
history
diff --git
a/sys/arch/sparc64/dev/lom.c
b/sys/arch/sparc64/dev/lom.c
index
27fc021
..
a34f6bc
100644
(file)
--- a/
sys/arch/sparc64/dev/lom.c
+++ b/
sys/arch/sparc64/dev/lom.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: lom.c,v 1.2
8 2021/10/24 17:05:03 mpi Exp $
*/
+/* $OpenBSD: lom.c,v 1.2
9 2022/07/04 19:06:10 miod Exp $
*/
/*
* Copyright (c) 2009 Mark Kettenis
*
@@
-955,7
+955,7
@@
lom_refresh(void *arg)
lom1_write_hostname(sc);
else
lom2_write_hostname(sc);
- strlcpy(sc->sc_hostname, hostname, sizeof(hostname));
+ strlcpy(sc->sc_hostname, hostname, sizeof(
sc->sc_
hostname));
}
}