delorie.com/archives/browse.cgi | search |
Date: | Mon, 20 Apr 1998 09:43:33 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
To: | "Allen's" <allen DOT asjp AT cableol DOT co DOT uk> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Bug caused by ____crtl_startup+138 |
In-Reply-To: | <3537BABA.7D4D@cableol.co.uk> |
Message-ID: | <Pine.SUN.3.91.980420094312.26314K-100000@is> |
MIME-Version: | 1.0 |
On Fri, 17 Apr 1998, Allen's wrote: > char map [100][100],row [80][160],drawhat; [snip] > row [start][col+240] = map [y+n][x-start]; The last line references row[start][col+240], but the declaration only allows the second dimension to go up to 160. So you are probably overwriting the stack which will crash you eventually.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |