From: Howard Chu Date: Fri, 10 Jun 2011 01:07:13 +0000 (-0700) Subject: Fix prev commit X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=214d7e3750e6deae2812d71f2749cb728bd1cfd3;p=openldap Fix prev commit --- diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index 3af0580a1a..0c039db76c 100644 --- a/servers/slapd/back-ldif/ldif.c +++ b/servers/slapd/back-ldif/ldif.c @@ -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) {