summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'channel.c')
-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);