diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 20:33:12 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 21:33:43 +0200 |
commit | d5d256b84fb6112960a37b3944c85b6b2bcf1125 (patch) | |
tree | 47c665585587e92c06d0fe18be5d9f8a059d8340 /src/hooks.cc | |
parent | 629b9a33952661972dd533377d8da594b95c2049 (diff) |
Replace COPY() macro use with assignment
There seems to be no compelling reason to use COPY()
or memcpy()
Diffstat (limited to 'src/hooks.cc')
-rw-r--r-- | src/hooks.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hooks.cc b/src/hooks.cc index ed8be7e9..0d89586a 100644 --- a/src/hooks.cc +++ b/src/hooks.cc @@ -162,7 +162,7 @@ static bool_ vprocess_hooks_return (int h_idx, const char *ret, const char *fmt, /* Push all args in the pile */ i = 0; - COPY(&real_ap, ap, va_list); + memcpy(&real_ap, ap, sizeof(va_list)); while (fmt[i]) { switch (fmt[i]) |