]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 10 Jun 2011 01:07:13 +0000 (18:07 -0700)
committerHoward Chu <hyc@openldap.org>
Fri, 10 Jun 2011 01:07:13 +0000 (18:07 -0700)
servers/slapd/back-ldif/ldif.c

index 3af0580a1a060d451072be66a71181e72e5952dd..0c039db76c9807c20b9005b9c416f68cd6403e42 100644 (file)
@@ -398,7 +398,7 @@ spew_file( int fd, const char *spew, int len, int *save_errno )
        int writeres;
 #define HEADER "# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.\n"
 
-       writeres = write(fd, HEADER, sizeof(HEADER));
+       writeres = write(fd, HEADER, sizeof(HEADER)-1);
        while(len > 0) {
                writeres = write(fd, spew, len);
                if(writeres == -1) {