diff options
Diffstat (limited to 'channel.c')
-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); |