Skip to content

Commit

Permalink
Initializes memblock with 0x20 instead of 0x00
Browse files Browse the repository at this point in the history
  • Loading branch information
psde committed Jan 17, 2013
1 parent 55fb519 commit e92c1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BufferWriter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class BufferWriter
this->fileDescriptor = open(file, O_CREAT | O_TRUNC | O_WRONLY, S_IRWXU);
#endif
this->writeBuffer = (char*)valloc(BufferWriter::BUFFER_SIZE);
memset(this->writeBuffer, 0, BufferWriter::BUFFER_SIZE);
memset(this->writeBuffer, 0x20, BufferWriter::BUFFER_SIZE);

this->bufferPosition = 0;
}
Expand Down

0 comments on commit e92c1bf

Please sign in to comment.