aboutsummaryrefslogtreecommitdiff
path: root/defaults.c
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-09-01 19:19:24 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-09-01 19:19:24 +1200
commitdec1efba06aeadcd9a4f13e8591f2efa016a24a0 (patch)
tree1293bc4cf8bc8a5acd3f9aef5fbc7215f3689983 /defaults.c
parent93b76533735fc1d9fd666787acd65db8507d9119 (diff)
downloadparamano-dec1efba06aeadcd9a4f13e8591f2efa016a24a0.tar.xz
Replace asprintf calls with snprintf
Diffstat (limited to 'defaults.c')
-rw-r--r--defaults.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/defaults.c b/defaults.c
index 23a662c..d9ff21d 100644
--- a/defaults.c
+++ b/defaults.c
@@ -26,5 +26,5 @@ void defaults_init()
DEFAULT_BAT_GOV = NULL;
DEFAULT_AC_GOV = NULL;
DEFAULT_SHOW_BATTERY = true;
- asprintf(&DEFAULT_THEME, SHAREDIR"/paramano/themes/default");
+ snprintf(DEFAULT_THEME, sizeof(DEFAULT_THEME), SHAREDIR"/paramano/themes/default");
}