1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-21 18:03:41 +03:00

CODING_STYLE: briefly mention that fgets() should not be used anymore

This commit is contained in:
Lennart Poettering 2018-10-19 21:56:10 +02:00
parent 923db66a16
commit b507423026

View File

@ -458,3 +458,7 @@
- When referring to a file system path that is a directory, please always
suffix it with "/", to indicate that it is a directory, not a regular file
(or other file system object).
- Don't use fgets(), it's too hard to properly handle errors such as overly
long lines. Use read_line() instead, which is our own function that handles
this much nicer.