mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Use AC_MEMCPY rather than memcpy() - has overlapping regions
This commit is contained in:
parent
f4e0802d5d
commit
bad4a24449
@ -12,14 +12,18 @@
|
|||||||
* <http://www.OpenLDAP.org/license.html>.
|
* <http://www.OpenLDAP.org/license.html>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <portable.h>
|
||||||
|
|
||||||
|
#include <ac/string.h>
|
||||||
|
#include <ac/ctype.h>
|
||||||
|
#include <ac/signal.h>
|
||||||
|
#include <ac/errno.h>
|
||||||
|
#include <ac/stdlib.h>
|
||||||
|
#include <ac/ctype.h>
|
||||||
|
#include <ac/time.h>
|
||||||
|
#include <ac/unistd.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <limits.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Schema reader that allows us to define DSA schema (including
|
* Schema reader that allows us to define DSA schema (including
|
||||||
@ -336,12 +340,12 @@ strtok_quote( char *line, char *sep )
|
|||||||
} else {
|
} else {
|
||||||
inquote = 1;
|
inquote = 1;
|
||||||
}
|
}
|
||||||
memcpy( next, next + 1, strlen( next + 1 ) + 1 );
|
AC_MEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '\\':
|
case '\\':
|
||||||
if ( next[1] )
|
if ( next[1] )
|
||||||
memcpy( next,
|
AC_MEMCPY( next,
|
||||||
next + 1, strlen( next + 1 ) + 1 );
|
next + 1, strlen( next + 1 ) + 1 );
|
||||||
next++; /* dont parse the escaped character */
|
next++; /* dont parse the escaped character */
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user