|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] Bug in workspace XML files |
Date: | Mon, 16 Dec 2013 03:00:26 +0800 |
Hi,
I have fixed the wrong tag, see SVN version 59.
The NUL bytes at the end of the file are on purpose to make sure
that, if the xml file is mmap()ed, there is a terminating 0 byte so
that use of C string functions on the mmap()ed memory is safe.
The mmap() man page says little about the bytes after the end of the file
if, for example, the file length is a multiple of the page size.
I have therefore added the 0-bytes at the end of the file to be on the safe side.
I consider them not as part of the xml file. And xmllint did not complain.
/// Jürgen
[Prev in Thread] | Current Thread | [Next in Thread] |