From: Michael Stapelberg Date: Sun, 23 Oct 2011 15:39:18 +0000 (+0100) Subject: i3bar: make len an integer for %.*s in sasprintf X-Git-Tag: 4.1~74 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=499d4c11e062486a375df64c5631b306a247b0e4;p=i3%2Fi3 i3bar: make len an integer for %.*s in sasprintf --- diff --git a/i3bar/src/config.c b/i3bar/src/config.c index 92ba772f..1b4dc0ec 100644 --- a/i3bar/src/config.c +++ b/i3bar/src/config.c @@ -63,10 +63,11 @@ static int config_null_cb(void *params_) { * */ #if YAJL_MAJOR >= 2 -static int config_string_cb(void *params_, const unsigned char *val, size_t len) { +static int config_string_cb(void *params_, const unsigned char *val, size_t _len) { #else -static int config_string_cb(void *params_, const unsigned char *val, unsigned int len) { +static int config_string_cb(void *params_, const unsigned char *val, unsigned int _len) { #endif + int len = (int)_len; /* The id is ignored, we already have it in config.bar_id */ if (!strcmp(cur_key, "id")) return 1;