aboutsummaryrefslogtreecommitdiff
path: root/src/rc-misc.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-07 12:29:30 +0000
committerRoy Marples <roy@marples.name>2008-01-07 12:29:30 +0000
commit43d0f3fc76542d0859c9b84402c0483a22e02b68 (patch)
tree125bcc9bf644a6390718868312df2b6be1905e89 /src/rc-misc.h
parent74e0e58b899accd2bd72a7d7303331e47089959f (diff)
rc_getline keeps expanding it's malloced buffer until it has read a whole line or EOF. All functions which read into static buffers have been changed to use fhis function to avoid any potential overflows and to ensure we really do read a long long config line.
Diffstat (limited to 'src/rc-misc.h')
-rw-r--r--src/rc-misc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rc-misc.h b/src/rc-misc.h
index c9f699eb..b7208e67 100644
--- a/src/rc-misc.h
+++ b/src/rc-misc.h
@@ -65,9 +65,6 @@
#define RC_PLUGINDIR RC_LIBDIR "/plugins"
-/* Max buffer to read a line from a file */
-#define RC_LINEBUFFER 4096
-
#define ERRX fprintf (stderr, "out of memory\n"); exit (1)
static inline void *xmalloc (size_t size)