Date: Mon, 22 Sep 2008 18:33:40 +0200 From: Max Laier <max@love2party.net> To: freebsd-current@freebsd.org Cc: Jille Timmermans <jille@quis.cx> Subject: Re: assertion failed in libc/stdlib/malloc.c Message-ID: <200809221833.40644.max@love2party.net> In-Reply-To: <48D7C6BF.8030702@quis.cx> References: <48D7C6BF.8030702@quis.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
Your program is broken: On Monday 22 September 2008 18:24:31 Jille Timmermans wrote: > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0fscanf(fh, "%d %d %d\n", = &mx, &my, &md); from doolhof -> mx=3D0, my=3D0, md=3D18 > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0while(md--) { > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0m= ap[my][mx] =3D MUUR; loop 1: map[0][0] =3D MUUR; that's okay ... > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0m= x++; loop 2: map[0][1] =3D MUUR ... that's ... > #define MAP_WIDTH 1 > #define MAP_HEIGHT 1 > > typedef enum { LEEG, BAL, MUUR } hokje; > hokje map[MAP_HEIGHT][MAP_WIDTH]; bad. > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0} =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809221833.40644.max>