Bugfix: arguments to calloc() in wrong order.