
To load each line of the configuration file we were previously using a simple buffer of length BUFSIZ. BUFSIZ is a macro provided by glibc as the 'recommended length for a buffer'. But since one of our users encountered a situation where really long config lines were necessary it's time to change that behaviour. This commit changes the line reading from using fgets with a character limit of BUFSIZ to simply using getline. We initialize the buffer pointer to NULL since getline will automatically allocate a big enough buffer for us if it's passed a NULL pointer. After that we pass the same buffer pointer again since, according to the getline manpage, getline will also call realloc on the buffer if necessary. Which means the only thing we have to do is call free() at the end of the parsing process. Fixes #294
Dunst
Description
Dunst is a highly configurable and lightweight notification daemon.
Compiling
Dunst has a number of build dependencies that must be present before attempting configuration. The names are different depending on distribution:
- dbus
- libxinerama
- libxft
- libxss
- libxdg-basedir
- glib
- pango/cairo
- libgtk2.0
Checkout the wiki for more information.
Bug reports
Please use the issue tracker provided by GitHub to send us bug reports or feature requests. You can also join us on the IRC channel #dunst
on Freenode.
Mantainers
Nikos Tsipinakis nikos@tsipinakis.com
Jonathan Lusso jonilusso@gmail.com
Author
written by Sascha Kruse dunst@knopwob.de
Copyright
copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information)
If you feel that copyrights are violated, please send me an email.
Description
Languages
C
95.1%
Shell
3.3%
Makefile
1.4%
Awk
0.2%