chiark / gitweb /
COPY_OBJ: we use sizeof(dst) so relax restriction on src
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 27 Sep 2019 23:14:47 +0000 (00:14 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Sep 2019 14:58:48 +0000 (15:58 +0100)
No code change, just interface docs.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
secnet.h

index cdeadad1d2cc8e171f3168d9baf53dc84da36696..d2575f17ae9a2d71e3fca8b037b75504e1b10760 100644 (file)
--- a/secnet.h
+++ b/secnet.h
@@ -728,7 +728,7 @@ extern void log_from_fd(int fd, cstring_t prefix, struct log_if *log);
  * void COPY_OBJ(  OBJECT& dst, const OBJECT& src);
  * void COPY_ARRAY(OBJECT *dst, const OBJECT *src, INTEGER count);
  *   // Typesafe: we check that the type OBJECT is the same in both cases.
- *   // It is OK to use COPY_OBJ on an array object, provided it's
+ *   // It is OK to use COPY_OBJ on an array object, provided dst is
  *   // _actually_ the whole array object and not decayed into a
  *   // pointer (e.g. a formal parameter).
  */