From b9cb60ec806ac52d62dc18bb9e84ec2c2d36ee42 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 1 Feb 2008 20:26:24 +0000 Subject: [PATCH] 2008-02-01 Marcus Brinkmann * gpgconf-comp.c (gc_component_list_options): Fix memcpy. Reported by Marc Mutz. --- tools/ChangeLog | 5 +++++ tools/gpgconf-comp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/ChangeLog b/tools/ChangeLog index 469b5431a..1539490a2 100644 --- a/tools/ChangeLog +++ b/tools/ChangeLog @@ -1,3 +1,8 @@ +2008-02-01 Marcus Brinkmann + + * gpgconf-comp.c (gc_component_list_options): Fix memcpy. + Reported by Marc Mutz. + 2008-01-22 Werner Koch * gpgconf-comp.c: Use gnupg domain for honor-http-proxy. Make diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index 7470f421f..813b6b935 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -1568,7 +1568,7 @@ gc_component_list_options (int component, FILE *out) gc_option_t opt_copy; /* Fix up the group level. */ - memcpy (&opt_copy, option, sizeof (opt)); + memcpy (&opt_copy, option, sizeof (opt_copy)); opt_copy.level = level; list_one_option (&opt_copy, out); }