From fa4f1c5b0fcbbc7f27008f62fcd8ccc7107e0ec1 Mon Sep 17 00:00:00 2001 From: shdown Date: Mon, 3 Aug 2015 12:51:20 +0300 Subject: [PATCH] config_parser: don't use sizeof(char) --- src/config_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.5