From 27bf4f8c64eac6d969116e4c6ed8584b52badb46 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 17 Aug 2009 13:38:02 +0200 Subject: struct channel_t shouldn't use sizeof(struct regexset_t) --- channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel.c b/channel.c index 065e606..45bbb71 100644 --- a/channel.c +++ b/channel.c @@ -14,7 +14,7 @@ void channel_init() { } struct channel_t *channel_add(const char *name) { - channels = realloc(channels, ++channel_count * sizeof(struct regexset_t)); + channels = realloc(channels, ++channel_count * sizeof(struct channel_t)); if(!channels) { char *error = strerror(errno); fprintf(stderr, "Could not (re)allocate memory for channels: %s\n", error); -- cgit v1.2.3