From a969d8bb19032a53d8cadae4e14bd21bd97f98d8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 28 Sep 2019 00:14:47 +0100 Subject: [PATCH] COPY_OBJ: we use sizeof(dst) so relax restriction on src No code change, just interface docs. Signed-off-by: Ian Jackson --- secnet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). */ -- 2.30.2