Re: assertion failed in libc/stdlib/malloc.c

From: Max Laier <max_at_love2party.net>
Date: Mon, 22 Sep 2008 18:33:40 +0200
Your program is broken:

On Monday 22 September 2008 18:24:31 Jille Timmermans wrote:
>                 fscanf(fh, "%d %d %d\n", &mx, &my, &md);

from doolhof -> mx=0, my=0, md=18

>                 while(md--) {
>                         map[my][mx] = MUUR;

loop 1:  map[0][0] = MUUR; that's okay ...

>                         mx++;

loop 2: map[0][1] = MUUR ... that's ...

> #define MAP_WIDTH               1
> #define MAP_HEIGHT      1
>
> typedef enum { LEEG, BAL, MUUR } hokje;
> hokje map[MAP_HEIGHT][MAP_WIDTH];

bad.

>                 }

-- 
/"\  Best regards,                      | mlaier_at_freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier_at_EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
Received on Mon Sep 22 2008 - 14:33:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC