From fe939f0d817f7309b203419658ab6ef6ec1306ab Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Jan 2012 17:37:58 +0000 Subject: Lint. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3949 a436a847-0d15-0410-975c-d299462d15a1 --- src/symap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/symap.c') diff --git a/src/symap.c b/src/symap.c index 16fb733..ee9320d 100644 --- a/src/symap.c +++ b/src/symap.c @@ -153,7 +153,7 @@ symap_map(Symap* map, const char* sym) char* const str = symap_strdup(sym); /* Append new symbol to symbols array */ - map->symbols = realloc(map->symbols, map->size * sizeof(char*)); + map->symbols = realloc(map->symbols, map->size * sizeof(str)); map->symbols[id - 1] = str; /* Insert new index element into sorted index */ @@ -187,7 +187,8 @@ symap_dump(Symap* map) { fprintf(stderr, "{\n"); for (uint32_t i = 0; i < map->size; ++i) { - fprintf(stderr, "\t%u = %s\n", map->index[i], map->symbols[map->index[i] - 1]); + fprintf(stderr, "\t%u = %s\n", + map->index[i], map->symbols[map->index[i] - 1]); } fprintf(stderr, "}\n"); } -- cgit v1.2.1