]> git.sur5r.net Git - openldap/blobdiff - contrib/slapd-modules/dsaschema/dsaschema.c
Coverity leak
[openldap] / contrib / slapd-modules / dsaschema / dsaschema.c
index 229830090f6c3444e8be1e26f3ce4450314e3809..0402dc5770fd783ff4205b26d9df6218900a4506 100644 (file)
@@ -1,6 +1,6 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 2004 The OpenLDAP Foundation.
+ * Copyright 2004-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * <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 <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
@@ -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;