Fix prev commit

This commit is contained in:
Howard Chu 2011-06-09 18:07:13 -07:00
parent a4a7ffdf5c
commit 214d7e3750

View 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) {