Nikos Tsipinakis 956f91f6a4 Fix issue with loading config files with lines bigger than BUFSIZ
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
2017-02-11 18:00:11 +02:00
2017-02-05 13:00:59 +02:00
2016-12-21 01:57:16 -03:00
2017-01-13 19:10:12 +01:00
2012-09-27 12:17:25 +02:00
2017-02-04 22:24:33 -03:00
2013-01-17 00:39:47 +01:00
2016-11-19 12:15:39 +02:00
2017-01-29 16:18:22 -03:00

Build Status

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 2013 Sascha Kruse and contributors (see LICENSE for licensing information)

If you feel that copyrights are violated, please send me an email.

Description
Lightweight and customizable notification daemon
Readme 6.8 MiB
Languages
C 95.1%
Shell 3.3%
Makefile 1.4%
Awk 0.2%