mirror of
https://github.com/systemd/systemd.git
synced 2025-03-11 20:58:27 +03:00
When looking for the terminating double-NUL, don't just read the memory until the terminator is found, but use the information we got about the buffer size. The length parameter passed to utf16_to_utf8() would include the terminator, so the converted string would end up with two terminators (the original one converted to "utf8", still 0, and then the one that was always added anyway). Instead let's pass just the length of the actual data to utf16_to_utf8().
systemd - System and Service Manager
Details
General information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.
Languages
C
89.2%
Python
5.3%
Shell
4.1%
Meson
1.2%