From: Luke Howard Date: Sat, 28 Feb 2004 02:59:58 +0000 (+0000) Subject: Use AC_MEMCPY rather than memcpy() - has overlapping regions X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~396 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bad4a24449bfa3d5e50ec77c7bf5214c89475b68;p=openldap Use AC_MEMCPY rather than memcpy() - has overlapping regions --- diff --git a/contrib/slapd-modules/dsaschema/dsaschema.c b/contrib/slapd-modules/dsaschema/dsaschema.c index 229830090f..906cbee34c 100644 --- a/contrib/slapd-modules/dsaschema/dsaschema.c +++ b/contrib/slapd-modules/dsaschema/dsaschema.c @@ -12,14 +12,18 @@ * . */ +#include + +#include +#include +#include +#include +#include +#include +#include +#include + #include -#include -#include -#include -#include -#include -#include -#include /* * Schema reader that allows us to define DSA schema (including @@ -336,12 +340,12 @@ strtok_quote( char *line, char *sep ) } else { inquote = 1; } - memcpy( next, next + 1, strlen( next + 1 ) + 1 ); + AC_MEMCPY( next, next + 1, strlen( next + 1 ) + 1 ); break; case '\\': if ( next[1] ) - memcpy( next, + AC_MEMCPY( next, next + 1, strlen( next + 1 ) + 1 ); next++; /* dont parse the escaped character */ break;