aboutsummaryrefslogtreecommitdiff
path: root/defaults.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-07-25 22:11:01 +1200
committerDavid <dbphillipsnz@gmail.com>2014-07-25 22:11:01 +1200
commit4297d84d20dee84620e600a29bfa24572677cf05 (patch)
treec138d20b170beebc2b65619992e0b57282c40d5a /defaults.c
parent42d79b75c81f6d25293c02eab71e3437d9d892b5 (diff)
downloadparamano-4297d84d20dee84620e600a29bfa24572677cf05.tar.xz
Moved from sprintf to asprintf
Diffstat (limited to 'defaults.c')
-rw-r--r--defaults.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/defaults.c b/defaults.c
index 627b702..0efd12d 100644
--- a/defaults.c
+++ b/defaults.c
@@ -26,7 +26,7 @@ char* _DEFAULT_PROG;
char* _DEFAULT_BAT_GOV;
char* _DEFAULT_AC_GOV;
bool _DEFAULT_SHOW_BATTERY = true;
-char _DEFAULT_THEME[2048]; // to do : make dynamic with malloc
+char* _DEFAULT_THEME;
void defaults_init()
{
@@ -36,5 +36,5 @@ void defaults_init()
_DEFAULT_BAT_GOV = NULL;
_DEFAULT_AC_GOV = NULL;
_DEFAULT_SHOW_BATTERY = true;
- sprintf (_DEFAULT_THEME, SHAREDIR"/trayfreq/themes/default");
+ asprintf(&_DEFAULT_THEME, SHAREDIR"/trayfreq/themes/default");
}