From: Ian Jackson Date: Fri, 27 Sep 2019 23:14:47 +0000 (+0100) Subject: COPY_OBJ: we use sizeof(dst) so relax restriction on src X-Git-Tag: v0.5.0~145 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=secnet.git;a=commitdiff_plain;h=a969d8bb19032a53d8cadae4e14bd21bd97f98d8 COPY_OBJ: we use sizeof(dst) so relax restriction on src No code change, just interface docs. Signed-off-by: Ian Jackson --- diff --git a/secnet.h b/secnet.h index cdeadad..d2575f1 100644 --- 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). */