From 44e5c1b6a4704682396d8a880fc6a8ba8242f304 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Fri, 25 Nov 2005 04:17:54 +0000 Subject: [PATCH] changed some heap vars to stacks vars. gentoo bug# 113219 git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@429 7f574dfc-610e-0410-a909-a81674777703 --- src/conky.c | 13 +------------ src/conky.h | 4 ++-- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/conky.c b/src/conky.c index a6bb68fb..0ec10822 100644 --- a/src/conky.c +++ b/src/conky.c @@ -34,11 +34,6 @@ #define MAIL_FILE "$MAIL" #define MAX_IF_BLOCK_DEPTH 5 -/* defining SIGNAL_BLOCKING will cause conky to block asynchronous signal handlin, - * in favor of inspecting for pending signals synchronously. this is experimental - * code designed to avoid signal events in slow/blocking system calls like select(). - * use #undef SIGNAL_BLOCKING for the tradiational, asynchronous signal handling. */ - /* #define SIGNAL_BLOCKING */ #undef SIGNAL_BLOCKING @@ -5089,11 +5084,6 @@ int main(int argc, char **argv) init_X11(); #endif /* X11 */ - tmpstring1 = (char *) - malloc(TEXT_BUFFER_SIZE); - tmpstring2 = (char *) - malloc(TEXT_BUFFER_SIZE); - /* load current_config or CONFIG_FILE */ #ifdef CONFIG_FILE @@ -5287,8 +5277,7 @@ int main(int argc, char **argv) } main_loop(); - free(tmpstring1); - free(tmpstring2); + return 0; } diff --git a/src/conky.h b/src/conky.h index 29731c3a..58f4fd79 100644 --- a/src/conky.h +++ b/src/conky.h @@ -209,8 +209,8 @@ int top_mem; int use_spacer; -char *tmpstring1; -char *tmpstring2; +char tmpstring1[TEXT_BUFFER_SIZE]; +char tmpstring2[TEXT_BUFFER_SIZE]; #ifdef X11 /* in x11.c */