diff options
author | David <dbphillipsnz@gmail.com> | 2014-07-25 22:11:01 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-07-25 22:11:01 +1200 |
commit | 4297d84d20dee84620e600a29bfa24572677cf05 (patch) | |
tree | c138d20b170beebc2b65619992e0b57282c40d5a /defaults.c | |
parent | 42d79b75c81f6d25293c02eab71e3437d9d892b5 (diff) | |
download | paramano-4297d84d20dee84620e600a29bfa24572677cf05.tar.xz |
Moved from sprintf to asprintf
Diffstat (limited to 'defaults.c')
-rw-r--r-- | defaults.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); } |