mixer.c
changeset 412 4c1f81481f87
parent 390 246b88b9b1f1
child 442 884a700fb3ff
     1.1 --- a/mixer.c	Sat Oct 03 08:09:27 2009 +0000
     1.2 +++ b/mixer.c	Sat Oct 03 08:46:55 2009 +0000
     1.3 @@ -117,7 +117,7 @@
     1.4  
     1.5  static void add_chunk_decoder(const char *decoder)
     1.6  {
     1.7 -	void *ptr = realloc(chunk_decoders, num_decoders * sizeof (const char **));
     1.8 +	void *ptr = realloc(chunk_decoders, (num_decoders + 1) * sizeof (const char **));
     1.9  	if (ptr == NULL) {
    1.10  		return;  /* oh well, go on without it. */
    1.11  	}