The allocated buffer size was slightly overestimated due to unused line feeds taken in account. I kept the differences with the original project as small as possible in order to make the next synchronization easy.