diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-17 13:38:02 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-17 13:38:02 +0200 |
commit | 27bf4f8c64eac6d969116e4c6ed8584b52badb46 (patch) | |
tree | 1c61c952003b6be138e2eb7872f8df785fadbf31 | |
parent | 54cd103d0a54f277865f430761b013becfde4c20 (diff) |
struct channel_t shouldn't use sizeof(struct regexset_t)
-rw-r--r-- | channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |