summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-08-17 13:38:02 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2009-08-17 13:38:02 +0200
commit27bf4f8c64eac6d969116e4c6ed8584b52badb46 (patch)
tree1c61c952003b6be138e2eb7872f8df785fadbf31
parent54cd103d0a54f277865f430761b013becfde4c20 (diff)
struct channel_t shouldn't use sizeof(struct regexset_t)
-rw-r--r--channel.c2
1 files changed, 1 insertions, 1 deletions
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);