From: shdown Date: Mon, 3 Aug 2015 09:51:20 +0000 (+0300) Subject: config_parser: don't use sizeof(char) X-Git-Tag: 4.11~58^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fa4f1c5b0fcbbc7f27008f62fcd8ccc7107e0ec1;p=i3%2Fi3 config_parser: don't use sizeof(char) --- diff --git a/src/config_parser.c b/src/config_parser.c index 4e16f060..e563c808 100644 --- a/src/config_parser.c +++ b/src/config_parser.c @@ -931,7 +931,7 @@ bool parse_file(const char *f, bool use_nagbar) { /* Then, allocate a new buffer and copy the file over to the new one, * but replace occurences of our variables */ char *walk = buf, *destwalk; - char *new = smalloc((stbuf.st_size + extra_bytes + 1) * sizeof(char)); + char *new = smalloc(stbuf.st_size + extra_bytes + 1); destwalk = new; while (walk < (buf + stbuf.st_size)) { /* Find the next variable */