]> git.sur5r.net Git - openldap/blobdiff - servers/slurpd/config.c
Kill lber_debug
[openldap] / servers / slurpd / config.c
index 47d8fb419add4b00f68b308c65df6cf7e9e24d5f..e9b5d7e7c1600fd75602cdc0c7973e64a35520db 100644 (file)
@@ -18,8 +18,8 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <stdlib.h>
 
+#include <ac/stdlib.h>
 #include <ac/string.h>
 #include <ac/socket.h>
 #include <ac/ctype.h>
@@ -177,7 +177,9 @@ strtok_quote(
            break;
 
        case '\\':
-           SAFEMEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
+           if ( next[1] )
+               SAFEMEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
+           next++;             /* dont parse the escaped character */
            break;
 
        default: